LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2006, 05:30 PM   #1
serverjunkie
LQ Newbie
 
Registered: Feb 2005
Distribution: Server: Debian Desktop:Windows XP x64 and Gentoo
Posts: 26

Rep: Reputation: 15
Unhappy 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

 
Old 10-28-2006, 05:44 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
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

No, you just need to define host headers.

http://httpd.apache.org/docs/1.3/mod...ml#serveralias
 
Old 10-28-2006, 05:56 PM   #3
serverjunkie
LQ Newbie
 
Registered: Feb 2005
Distribution: Server: Debian Desktop:Windows XP x64 and Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks but thats not what i want it to do... It needs to serve different pages for different domains
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 virtual hosts issue Geminias Linux - Networking 0 10-08-2006 03:23 PM
Apache2 - need help with virtual hosts bioalchemist Linux - Software 5 08-11-2006 01:24 PM
Subdomains on Apache2 with virtual hosts - how? <Ol>Origy Linux - Networking 2 08-18-2005 05:53 AM
Apache2, SSL, 2 Virtual Hosts franticbob Linux - Software 0 04-07-2004 09:48 PM
apache2 virtual hosts viniosity Linux - Software 4 02-07-2004 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration