apache2 - Multiple hostnames, same domain, different virtualhost -


i trying route requests different docroots depending on host name (not domain name):

 <virtualhost 123.123.12.12:80>  suexecusergroup "#521" "#521"  servername forum.somesite.net  documentroot /home/somesite/public_html/forums  </virtualhost>   <virtualhost 123.123.12.12:80>  suexecusergroup "#521" "#521"  servername www.somesite.net  documentroot /home/somesite/public_html  </virtualhost> 

it not working though. apache seems go first entry regardless of in hostname. doing wrong?

try changing second virtual host this

 <virtualhost 123.123.12.12:80>   suexecusergroup "#521" "#521"   servername somesite.net   serveralias www.somesite.net   documentroot /home/somesite/public_html  </virtualhost> 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -