change all new and old subdomains path

Yasham

Verified User
Joined
Feb 3, 2018
Messages
36
hello,
I went to change all subdomains path from:
... / domains / domain / public_html / sub
to
... / domains / domain / sub
----------------------------------------
I follow this toutrial
https://help.directadmin.com/item.php?id=2

and in virtual_host2_secure_sub.conf path to
|?CGI=ScriptAlias /cgi-bin/ `HOME`/domains/`DOMAIN`/`SUB`/cgi-bin/|
|?DOCROOT=`HOME`/domains/`DOMAIN`|
|?REALDOCROOT=`HOME`/domains/`DOMAIN`|

in virtual_host2_secure_sub.conf

|?DOCROOT=`HOME`/domains/`DOMAIN`|
|?REALDOCROOT=`HOME`/domains/`DOMAIN`|

-------------------------------------

the new paths is working goodbut when I create any new sub-domain DA create it in public_html and I should move it manually out of public_html to allow new usb-domain to be work ..

how I can solve this problem :)
thanks ..
 
Back
Top