Subdomains

#1
Hi,

all works good, but all subdomains in www.XXXXX.hostingsolutions.us don't works (error 404). But one subdomain work: http://cc.hostingsolutions.us/.

(subdomain which doesn't work!):

vHost kamilet
<VirtualHost 63.247.93.106>
ServerAlias kamilet.hostingsolutions.us
ServerAdmin webmaster@kamilet.hostingsolutions.us
DocumentRoot /home/kamilet/public_html
BytesLog domlogs/kamilet.hostingsolutions.us-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/kamilet/usr/lib/phpusr/local/lib/phptmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/kamilet/usr/lib/phpusr/local/lib/phptmp"
</IfModule>
ServerName www.kamilet.hostingsolutions.us
ServerAlias iframemoney.info www.iframemoney.info

<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled kamilet
</IfModule>


User kamilet
Group kamilet
CustomLog /usr/local/apache/domlogs/kamilet.hostingsolutions.us combined
ScriptAlias /cgi-bin/ /home/kamilet/public_html/cgi-bin/
</VirtualHost>

subdomain which work:

vHost cc
<VirtualHost 63.247.93.106>
ServerAlias cc.hostingsolutions.us
ServerAdmin webmaster@cc.hostingsolutions.us
DocumentRoot /home/cchost/public_html
BytesLog domlogs/cc.hostingsolutions.us-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/cchost/usr/lib/phpusr/local/lib/phptmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/cchost/usr/lib/phpusr/local/lib/phptmp"
</IfModule>
ServerName www.cc.hostingsolutions.us

<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled cchost
</IfModule>


User cchost
Group cchost
CustomLog /usr/local/apache/domlogs/cc.hostingsolutions.us combined
ScriptAlias /cgi-bin/ /home/cchost/public_html/cgi-bin/
</VirtualHost>

I have similar problem with some domains
 
Last edited:

mistwang

LiteSpeed Staff
#3
I tested the two virtual host configuration in crafted Cpanel style httpd.conf, both works. The problem might be somewhere else.
Can you enabled DEBUG logging and test it again?
To enabled debug logging, you need to change server "Log Level" to "DEBUG" and "Debug Level" to "high". You should see something like

2006-07-18 12:27:19.474 [DEBUG] Associates [APVHost3] with [63.247.93.106:2080] on hostname/IP [kamilet.hostingsolutions.us] succeed!
2006-07-18 12:27:19.475 [DEBUG] Associates [APVHost4] with [63.247.93.106:2080] on hostname/IP [cc.hostingsolutions.us] succeed!

You can send us the debug log for analysis if you want to. :)
 
Top