Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Virtual Host - Seperate Servers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Tue Sep 21, 2004 1:39 am    Post subject: Apache Virtual Host - Seperate Servers Reply with quote

Hello,

I currently have 2 servers say, dev.domain.com and mail.domain.com

now port 80 goes to dev.domiain.com. and I only have one external IP address which resolves to the dev server.

Now here is my problem which I have not be able to figure out.

on mail.domain.com, I have a website , http://mail.domain.com/mail

what settings would i put in the vhosts file on dev.domain.com such that when I go to

http://domain.com -> http://dev.domain.com
http://domain.com/mail -> http://mail.domain.com/mail

Now since port 80 main.domain.com, also how do I get apache too pass the data from mail.domain.com site www.domain.com/mail?

Thanks,

Nadin
Back to top
View user's profile Send private message
Jaxom
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 137

PostPosted: Tue Sep 21, 2004 5:04 am    Post subject: Reply with quote

It would be easier to just set the mail to listen on a different port, like say 85 or something and have your NAT pass port 85 to the other server. Otherwise you would need to do a bunch of different voodoo to make it work.
_________________
Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin
Back to top
View user's profile Send private message
groovin
Guru
Guru


Joined: 07 Feb 2004
Posts: 429
Location: California, USA

PostPosted: Tue Sep 21, 2004 6:11 am    Post subject: Reply with quote

jaxom's right. just have it listen on a non 80 port and adjust your DNS accordingly.
Back to top
View user's profile Send private message
chipig
n00b
n00b


Joined: 19 Sep 2004
Posts: 8
Location: Helena, Montana

PostPosted: Tue Sep 21, 2004 6:36 am    Post subject: Reply with quote

Upstream Documentation on Name based virtual hosting:
http://httpd.apache.org/docs-2.0/vhosts/name-based.html
_________________
Apache HTTPd Developer
Gentoo-Apache Herd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum