DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th May 2008
krreagan krreagan is offline
New User
 
Join Date: May 2008
Location: Colorado, USA
Posts: 5
Thanked 0 Times in 0 Posts
Default Serving 2 domains through firewall using a Jail?

I have a firewall that forwards all port 80 requests to my server s1.myserver.com.

I have multiple domains (myserver.com & theirserver.com) pointing to my global IP address which is on the WAN side of my firewall.

I have this working using just virtual domains on a single (s1.myserver.com) server.

I have recently added a jail VM (s2.mydomain.com) setup to this server and would like to move my theirserver.com domain traffic inside the jail with it's own dedicated web server.

My question is: How (if possible) do I configure apache on my s1.myserver.com so that it handles www.myserver.com traffic itself but passes traffic destined for www.theirserver.com to the jail VM and it's own apache server without the client knowing about this configuration?

I looked at the reverse proxy features but got lost in the weeds . (this is a hobby for me and not my business).

FREEBSD 7-STABLE

Thanks
Krreagan
Reply With Quote
  #2   (View Single Post)  
Old 4th May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Quote:
Originally Posted by krreagan
How (if possible) do I configure apache on my s1.myserver.com so that it handles www.myserver.com traffic itself but passes traffic destined for www.theirserver.com to the jail VM and it's own apache server without the client knowing about this configuration?
So, if I understand this correctly, you have:
  • a single static IP address;
  • one apache instance in a jail, the other apache instance in the host environment;
  • two domain names (which currently resolve to the same IP address).

If that's all true, to me the cleanest way to handle this is to run apache only in the jail and simply use name-based virtual hosting to serve up both sites. (Eh, and it sounds like you're already doing that?)

I know this doesn't address exactly what you are looking for. Just throwing out ideas until someone with a better one comes along.
__________________
Kill your t.v.

Last edited by anomie; 4th May 2008 at 09:40 PM. Reason: removed useless suggestion.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Postfix virtual domains juris98 General software and network 2 11th February 2009 12:14 AM
Virtual domains on multiple mail servers running Exim4 as MTA satimis General software and network 10 27th November 2008 02:42 PM
Getting around Jail IP Adresses starbuck FreeBSD Security 8 9th August 2008 01:15 AM
SquidGuard fails when building the Berkeley DB files for domains costy OpenBSD Packages and Ports 1 31st July 2008 09:22 PM
URL evaluation tools to determine if serving malware dk_netsvil Off-Topic 0 30th June 2008 04:55 PM


All times are GMT. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick