Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
The G-WAN FAQs explain how it works: gwan.com/faq#listener –  Gil Sep 1 '12 at 4:42

1 Answer 1

I am not sure but I believe that the www. prefix is hard-coded as an alias already.

You should rather try with something like secure.movq.org (providing that your DNS records are set, and that the client will use this domain name as the "Host: xxx" HTTP header then it should work for you too).

To simplify things you can use the G-WAN aliases feature for different domain names serving a same site and the virtual hosts (or another listener) for different sites.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.