public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ow Mun Heng <Ow.Mun.Heng@wdc.com>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Can Apache Proxy for a NAT'ed web-server
Date: Thu, 14 Jul 2005 10:26:37 +0800	[thread overview]
Message-ID: <1121307997.28201.48.camel@neuromancer.home.net> (raw)
In-Reply-To: <42D5BFF6.9050107@gentoo.org>

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 


-- 
gentoo-server@gentoo.org mailing list



  reply	other threads:[~2005-07-14  2:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13  3:38 [gentoo-server] Can Apache Proxy for a NAT'ed web-server Ow Mun Heng
2005-07-13 15:32 ` Kirk Hoganson
2005-07-13 16:01   ` Ow Mun Heng
2005-07-14  1:29     ` Michael Stewart (vericgar)
2005-07-14  2:26       ` Ow Mun Heng [this message]
2005-07-14 14:42         ` kashani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1121307997.28201.48.camel@neuromancer.home.net \
    --to=ow.mun.heng@wdc.com \
    --cc=gentoo-server@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox