On Wed, 2005-07-13 at 18:29 -0700, Michael Stewart (vericgar) wrote:
> Ow Mun Heng wrote:
> >
> > Yep.. Mod_rewrite can be used for this. Didn't think of that since I was
> > thinking "Proxy" only.
> >
> > That being said, using mod_rewrite I can rewrite on-the-fly to the
> > Nat'ed address. But what if the add has a DNS entry? Say
> >
> > www.example2.com and www.example1.com both has the same external IP (say
> > 10.1.1.1)
> >
> > but www.example2.com is actually a NAT'ed server inside the firewall and
> > behind apache? What then?
> >
>
> If I am understanding you correctly, vhosts should do the trick.
>
> www.example1.com would be set up like a normal vhost
> www.example2.com would be a vhost with just proxy directives in it:
So that would be Named based Vhosts? I'm just a bit confused on how we
can direct it to the internal Box. (FWIW, it may be serving from
Mac/Win)
assuming apache:
<VirtualHost vhost.home.net>
ServerName vhost.home.net
ServerAlias www.vhost.home.net
DocumentRoot /var/www/vhost.home.net/htdocs
TransferLog /tmp/vhost-access.log
<Directory "/var/www/vhost.home.net/htdocs">
Options -Indexes -FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
how do I specify the internal example2.com (say ip 192.168.1.1)
Where does the proxy directive go to?
Thanks for the help in explaining.
>
--
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!!
Neuromancer 09:43:49 up 21:09, 4 users, load average: 1.20, 1.12, 1.47
--
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!!
Neuromancer 10:26:36 up 21:51, 5 users, load average: 0.86, 0.51, 0.54
--
[email protected] mailing list