Change DocumentRoot of a subdomain

Sushi

New member
Joined
Sep 6, 2019
Messages
2
Hello,

I just migrated a few pages from cPanel to DA. The migration itself was pretty smooth and without any problems and so far everything is running fine.

However, we are running a Laravel instance under a subdomain. Laravel uses a /public directory to serve its files.
In cPanel I just changed the DocumentRoot of the subdomain to that /public directory and everything was nice.
In DA I either need to do some htaccess magic or follow this guide:
https://help.directadmin.com/item.php?id=199

The guide is working, but this way is pretty pain if you are using nginx+apache (or even just apache) for a simple thing like changing a subdomain directory.
I actually can't imagine that it is such a rare scenario, so I would like to suggest to make this easier and integrate a way to change a subdomains directory directly via DA webinterface.


Kind regards
Sushi
 
Agree .. i think this can be more easy via control panel if any option custom subdomain path directory in subdomain menu .
 
Back
Top