Hi, guys.
I have a client who has many domains and wants to change the document root for two subdomains of some of his domains.
Let's say he wants to have the following
- aaa.domain1.com - /home/user/domains/domain1.com/public_html/aaa/public
- bbb.domain2.com - /home/user/domains/domain2.com/public_html/bbb/public
He has created both subdomains. So I went to the httpd.conf customization page and added the following:
I saved it and when I check what it did, I see the following.
The VirtualHost for aaa.domain1.com shows the following:
And the VirtualHost for bbb.domain2.com does not show any changes.
What should I do to:
- apply the changes to both domains/subdomains?
- avoid DA to add the subdomain name to the document root I define?
Thanks!
I have a client who has many domains and wants to change the document root for two subdomains of some of his domains.
Let's say he wants to have the following
- aaa.domain1.com - /home/user/domains/domain1.com/public_html/aaa/public
- bbb.domain2.com - /home/user/domains/domain2.com/public_html/bbb/public
He has created both subdomains. So I went to the httpd.conf customization page and added the following:
Code:
|*if SUB="aaa"|
|?DOCROOT=/home/user/domains/domain1.com/public_html/aaa/public|
|*endif|
|*if SUB="bbb"|
|?DOCROOT=/home/user/domains/domain2.com/public_html/bbb/public|
|*endif|
I saved it and when I check what it did, I see the following.
The VirtualHost for aaa.domain1.com shows the following:
Code:
DocumentRoot /home/user/domains/domain1.com/public_html/aaa/public/aaa
And the VirtualHost for bbb.domain2.com does not show any changes.
What should I do to:
- apply the changes to both domains/subdomains?
- avoid DA to add the subdomain name to the document root I define?
Thanks!