Brad Alpert wrote:
ProxyPass and ProxyPass reverse contained in the VirtualHost
directive allows you to masquerade a local directory to another
machine.  What I need is a complete virtual presence from the inside
server.  If VirtualHosts doesn't allow this, I am surprised.
Did you compile apache with mod_proxy?

I don't think ProxyPass[Reverse] is what you're looking for, as these handle direct path requests for the local server. ProxyRemote seems to be more along the lines of what you're trying to do, as it is supposed to map a URL to a remote host.

http://httpd.apache.org/docs/mod/mod_proxy.html#proxyremote

Is there some reason that you don't/can't run the domains from the same box?

And yes, IIS does allow the pointing of any number of inside IIS
servers to a single, outside IP.  Before I migrated my stuff to over
to RedHat, I had three internal domains externally represented over
my single IP, each with their own registered domain name.  It's
trivial, couple of mouse clicks and you're there.  IIS uses "host
headers" which is analogous to virtual hosts.  Likewise, you can use
fake internal IP's in IIS to do the same thing, as in Apache.
It just seems strange that Microsoft would include a "proxy server" in with their web server....when they would normally charge seperately for both. :)

This has to be doable in apache..  I can't believe there aren't
people out there on apache running any number of internal virtual
servers, addressable by unique domain name, from a single IP.
I'm currently running 5 external domains on the same IP, but they're all on the same box. My internal domains are on a different box, have a bogus IP, and only accessable from my network (used mainly for dev purposes). I use the same DNS servers to point to both, but the internal names don't get announced to the outside world.

Let me make sure I understand you.  You have a static IP address
for one  machine on your network.  On that machine, you have
Apache running a  domain.  Also on your network, you have a seond
machine, also running  apache, serving up a second domain.  You're
pointing the DNS for both  domains to the first box with the
static IP, and trying to use the  Apache virtual host directive on
the first box to server up the domain  on both that box, and on
the second box?

I haven't played around with Apache2 yet, but I know this isn't
possible  with 1.3x versions.  The virtual hosts must be on the
same box.  What  kind of IP does the second box have?  Static,
dynamic, something you  made up for your internal network?  For
Apache to serve up the second  domain, you need to point the DNS
to that second box (if it has an IP  that can be hit from the
outside).

> ps - this experience is the only one I've had with Apache that
makes me miss a feature of IIS.

I've never used IIS, but I'd be suprised if it would point a
virtual  host to another box.

Brad Alpert wrote:

After days of fruitless travail trying to get this working, I am
asking for help before I lose my will to live :)

I have an external IP registered in DNS.  The machine that hosts
apache 2.040 is publicly accessible and everything with it works
fine.

Here's the problem:

I have another machine inside the firewall which is running
apache.  I have a another registered domain which I want to
serve from this machine.  I thought that the name-based
VirtualHost directive would do the trick, but when I add the
VirtualHost section (listening on the same port as the main
site) along with ServerName, etc., an
external access to www.insidedomain.com opens the
www.outsidedomain.com page.

I have tried ProxyPass, PermanentRedirect, a combination of
name- and IP-based virtual hosts, anything I could think of, but
nothing works.

DNS is right, so far as I can tell; the internal and external
entries are there (split-brain).  An external ping to
www.insidedomain.com results in a hit, as expected.  The
www.insidedomain.com site is accessible from inside the network.
But any attempt to access it from outside fails over to the
default virtual (main) site.

So, the short question is - is anybody successfully running, on
a single external IP, a virtual host inside the same internal
network that is accessible from outside by that virtual site's
registered name?  If so, any tips would be greatly appreciated.

I could post the VirtualHost sections from my httpd.conf, but
frankly it has gone through so many iterations that it would be
pointless.  What I need is a working example or at least a
pointer on the right approach to take.

Any help much appreciated!

Thanks/Brad

ps - this experience is the only one I've had with Apache that
makes me miss a feature of IIS.






--
By-Tor.com
It's all about the Rush
http://www.by-tor.com



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to