Hello
I'm trying to change the subdomaind document root but DA adds the subdomain after the correct document root.
Let's make an example:
I created a subdomain named "i", i.thedomain.tld, but I want this subdomain to serve the content of a specific directory ( which is named "img" and happens to be under another subdomain - "be.thedomain.tld" - but this should make no difference )
I went in the custom httpd conf section and added these lines:
the result I get is the following - see the DocumentRoot ends with "/i":
am I doing something wrong or is this kind of a bug?
Can the document root be set manually editing a file?
I'm trying to change the subdomaind document root but DA adds the subdomain after the correct document root.
Let's make an example:
I created a subdomain named "i", i.thedomain.tld, but I want this subdomain to serve the content of a specific directory ( which is named "img" and happens to be under another subdomain - "be.thedomain.tld" - but this should make no difference )
I went in the custom httpd conf section and added these lines:
Code:
|*if SUB="i"|
|?DOCROOT=/home/username/domains/thedomain.tld/public_html/be/img|
|*endif|
the result I get is the following - see the DocumentRoot ends with "/i":
Code:
<VirtualHost 999.999.999.999:80>
ServerName www.i.thedomain.tld
ServerAlias www.i.thedomain.tld i.thedomain.tld
ServerAdmin [email protected]
DocumentRoot /home/username/domains/thedomain.tld/public_html/be/img[B]/i[/B]
UseCanonicalName OFF
SuexecUserGroup username username
CustomLog /var/log/httpd/domains/thedomain.tld.i.bytes bytes
CustomLog /var/log/httpd/domains/thedomain.tld.i.log combined
ErrorLog /var/log/httpd/domains/thedomain.tld.i.error.log
<Directory /home/username/domains/thedomain.tld/public_html/be/img[B]/i[/B]>
Options +Includes -Indexes
suPHP_Engine ON
suPHP_UserGroup username username
</Directory>
</VirtualHost>
am I doing something wrong or is this kind of a bug?
Can the document root be set manually editing a file?