How-To: main domain in seperate folder (/public_html/www)

k1l0b1t

Verified User
Joined
May 10, 2020
Messages
504
Location
Belgium
I have a domain with a lot of subdomains, and I've been using this custom configuration to not have to set a custom document root for all subdomains seperately, but instead have the main domain in a seperate folder.

Make a directory to house the main domain, for example ~/domains/domain.be/public_html/www. and add the following into the custom httpd configuration:

Code:
|*if !SUB|
|?DOCROOT=/home/<user>/domains/domain.be/public_html/www|
|*endif|
 
  • Like
Reactions: WHI
Back
Top