How to configure g-wan to use virtual hosts?

Posted by Jan on Server Fault See other posts from Server Fault or by Jan
Published on 2012-04-13T16:57:32Z Indexed on 2012/04/13 17:33 UTC
Read the original article Hit count: 279

Say I have a domain foo.com and a server accessible at 50.60.70.80. I have configured the DNS entries so that foo.com and www.foo.com point to 50.60.70.80. I have g-wan running on the web server. Now I want to host different web sites on foo.com and on www.foo.com.

According to the documentation I have to configure a root host and optionally some virtual hosts. So I choose foo.com to be the root host. www.foo.com is a virtual host. My problems is that g-wan seems to ignore my virtual host. No matter whether I use foo.com or ww.foo.com g-wan always serves the foo.com content.

This is my g-wan "config":

/gwan/0.0.0.0_80/#movq.org
/gwan/0.0.0.0_80/$www.movq.org

What am I doing wrong here?

© Server Fault or respective owner

Related posts about webserver

Related posts about configuration