change document root

How can I change document root for one user from var/www/html to var/www/html/public

I have try to edit etc/httpd/conf/virtual/sitexx file but it seems not applyed.
I have restart the httpd service.

If you look at how ApisCP installs Laravel, it creates a folder called something like /var/www/laravel_html and then a symlink of html → laravel_html/public.

You can replicate that yourself if you’re not using Laravel.

1 Like