FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 07-11-2008, 07:46 AM
Mikael Fridh
Default redirecting when behind a firewall

On Thu, Jul 10, 2008 at 12:29:18PM -0700, bruce wrote:
> So i don't have the ability to do something like "forward foo.gotdns.com to
> machine1, and forward foo2.gotdns.com to machine2" which is exactly what i'm
> trying to accomplish!!

You wrote a really long mail so sorry if I missed some of your intentions but
here's some pseudo-code showing an example ...

foo.example.com. IN A
foo1.example.com. IN CNAME foo.gotdns.com
foo2.example.com. IN CNAME foo.gotdns.com

redirects all WAN traffic to internal LAN server:
WAN: => LAN:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName foo1.example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all

ProxyPass / http://internal1.foo.example.com/
ProxyPassReverse / http://internal1.foo.example.com/

<VirtualHost *:80>
ServerName foo2.example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass / http://internal2.foo.example.com/
ProxyPassReverse / http://internal2.foo.example.com/

Now all you need is to set up internal[12].foo.example.com as either vhosts or
on physical web servers.

That's one possible solution. Others might be more complex load balancer

CentOS mailing list

Thread Tools

All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org