Scenario: Customer creates a subdomain.
Problem: When navigating to the subdomain in a browser, the main domain is displayed, not the contents of maindomain/subdomain
I can navigate to the maindomain/subdomain folder - this has been created fine.
Whats wrong ?
Here is the httpd.conf entry for the subdomain...
<VirtualHost xx.xx.xx.xx>
ServerAlias www.SUBDOMAIN.MAINDOMAIN.com
ServerAdmin [email protected]
DocumentRoot /home/USERNAME/public_html/FOLDER
BytesLog domlogs/SUBDOMAIN.MAINDOMAIN.com-bytes_log
ServerName SUBDOMAIN.MAINDOMAIN.com
<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled USERNAME
</IfModule>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/USERNAME:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/USERNAME:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
User USERNAME
Group USERNAME
CustomLog /usr/local/apache/domlogs/SUBDOMAIN.MAINDOMAIN.com combined
ScriptAlias /cgi-bin/ /home/USERNAME/public_html/FOLDER/cgi-bin/
</VirtualHost>
Problem: When navigating to the subdomain in a browser, the main domain is displayed, not the contents of maindomain/subdomain
I can navigate to the maindomain/subdomain folder - this has been created fine.
Whats wrong ?
Here is the httpd.conf entry for the subdomain...
<VirtualHost xx.xx.xx.xx>
ServerAlias www.SUBDOMAIN.MAINDOMAIN.com
ServerAdmin [email protected]
DocumentRoot /home/USERNAME/public_html/FOLDER
BytesLog domlogs/SUBDOMAIN.MAINDOMAIN.com-bytes_log
ServerName SUBDOMAIN.MAINDOMAIN.com
<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled USERNAME
</IfModule>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/USERNAME:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/USERNAME:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
User USERNAME
Group USERNAME
CustomLog /usr/local/apache/domlogs/SUBDOMAIN.MAINDOMAIN.com combined
ScriptAlias /cgi-bin/ /home/USERNAME/public_html/FOLDER/cgi-bin/
</VirtualHost>
Last edited: