Quote From : pdolinaj September 23, 2020, 9:23 am I've just set up my Laravel application but I need to find a way to point the document root to "public" folder.
I've added something like this to the Apache extra configuration:
DocumentRoot /home/mycopmany/www/mydomain.com/public
However, this gets overwritten in the Webuzo generated vhost file (/usr/local/apps/apache/etc/conf.d/webuzoVH.conf) to:
DocumentRoot /home/mycopmany/www/mydomain.com
I can obviously change the autogenerated file DocumentRoot settings but this will get overwritten every time I make any changes.
What's the best way to do this?
Thanks.
You can try creating an addon domain. When you do that you can define your own path.
I haven't found a way to do this with the primary domain, though.
|