Choose directory for www

sephen

Verified User
Joined
Nov 12, 2019
Messages
15
Maybe a noob question but I would like my www files to live in a separate folder to prevent them cluttering up my public_html directory where also the subdomain folders live. When creating a subdomain you get a directory with that name. Is there a way you can point the www to a directory?

Thanks
 
In my limited experience you have two options: move each sub-domain or moving the domain itself. Both would be done using a custom httpd.conf.

You can move the domain files into a www folder beside public_html by implementing something like the bottom of this help doc:


I think it would look something like this:

Code:
|*if !SUB|
|?DOCROOT=`HOME`/domains/`DOMAIN`/www|
|*endif|
 
Back
Top