LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache2 Virtual Hosts Behind A Router (https://www.linuxquestions.org/questions/linux-networking-3/apache2-virtual-hosts-behind-a-router-496459/)

serverjunkie 10-28-2006 05:30 PM

Apache2 Virtual Hosts Behind A Router
 
Hi there everyone... I have tired endlessly to get virtual hosts to work behind my router. Over at zoneedit.com in my zone i have two A address pointing to my router here which has virtual server enabled and serves my website. Ok so www.mydomain.com works fine but links.mydomain.com retreives the same as www.mydomain.com. Is this due to my router or what?

Cheers
Chris :confused:

:newbie:

KimVette 10-28-2006 05:44 PM

Quote:

Originally Posted by serverjunkie
Hi there everyone... I have tired endlessly to get virtual hosts to work behind my router. Over at zoneedit.com in my zone i have two A address pointing to my router here which has virtual server enabled and serves my website. Ok so www.mydomain.com works fine but links.mydomain.com retreives the same as www.mydomain.com. Is this due to my router or what?

Cheers
Chris :confused:

:newbie:

No, you just need to define host headers.

http://httpd.apache.org/docs/1.3/mod...ml#serveralias

serverjunkie 10-28-2006 05:56 PM

Thanks but thats not what i want it to do... It needs to serve different pages for different domains


All times are GMT -5. The time now is 11:12 AM.