From: | "Michael Stewart (vericgar)" <vericgar@g.o> | ||
---|---|---|---|
To: | gentoo-server@l.g.o | ||
Subject: | Re: [gentoo-server] Can Apache Proxy for a NAT'ed web-server | ||
Date: | Thu, 14 Jul 2005 01:31:31 | ||
Message-Id: | 42D5BFF6.9050107@gentoo.org | ||
In Reply to: | Re: [gentoo-server] Can Apache Proxy for a NAT'ed web-server by Ow Mun Heng |
1 | Ow Mun Heng wrote: |
2 | > |
3 | > Yep.. Mod_rewrite can be used for this. Didn't think of that since I was |
4 | > thinking "Proxy" only. |
5 | > |
6 | > That being said, using mod_rewrite I can rewrite on-the-fly to the |
7 | > Nat'ed address. But what if the add has a DNS entry? Say |
8 | > |
9 | > www.example2.com and www.example1.com both has the same external IP (say |
10 | > 10.1.1.1) |
11 | > |
12 | > but www.example2.com is actually a NAT'ed server inside the firewall and |
13 | > behind apache? What then? |
14 | > |
15 | |
16 | If I am understanding you correctly, vhosts should do the trick. |
17 | |
18 | www.example1.com would be set up like a normal vhost |
19 | www.example2.com would be a vhost with just proxy directives in it: |
20 | |
21 | -- |
22 | Michael Stewart vericgar@g.o |
23 | Gentoo Developer http://dev.gentoo.org/~vericgar |
24 | |
25 | GnuPG Key ID 0x08614788 available on http://pgp.mit.edu |
26 | -- |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-server] Can Apache Proxy for a NAT'ed web-server | Ow Mun Heng <Ow.Mun.Heng@×××.com> |