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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -