Solved Subdomain docroot

Inform-all

Verified User
Joined
Mar 1, 2016
Messages
7
Directadmin recently (as i recall correctly somewhere in March) changed the method to set the docroot for subdomains.
But i think this also created a bug.

When you have a user with only one domain and that domain is a subdomain. You would normally add a custom httpd configuration to set te docroot for this user. But this config does not working anymore, this custom httpd docroot is skipped completly since this new update.
 
Hello,

Will you let us know which custom code you use? And in what CUSTOM section did you add it?
 
Thanks for your reply!
Hello,

Will you let us know which custom code you use? And in what CUSTOM section did you add it?
Since i'm using PHP8.3 i have put it in "php-fpm 8.3 |CUSTOM2|" and the custom code i used is:
|?DOCROOT=/home/admin/domains/sub.domain.com/public_html/Subfolder|
 
The custom code snippet should be added into CUSTOM sections of

httpd.conf and/or nginx.conf

But not in php-fpm.
 

Attachments

  • custom_docroot.png
    custom_docroot.png
    18.1 KB · Views: 17
Back
Top