custom path directory for subdomain in directadmin

NabiKAZ

Verified User
Joined
Nov 4, 2014
Messages
5
I need to have a subdomain with shop name, that point to web directory.

I use below code in this option: admin > Custom Httpd Configurations

Code:
|*if SUB="shop"|
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html/web|
|*endif|

But this is output code:

Code:
DocumentRoot /home/example/domains/example.com/public_html/web/shop

This is because in the sub host template file (/usr/local/directadmin/data/templates/virtual_host2_sub.conf) wrote this: DocumentRoot |DOCROOT|/|SUB|

I need to this correction output:

Code:
DocumentRoot /home/example/domains/example.com/public_html/web

How can I resolve this problem?
 
Back
Top