Apache Server configuration support - Subdomain to access another (firewalled) server

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > Subdomain to access another (firewalled) server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Subdomain to access another (firewalled) server
Snyke

2007-06-15, 1:23 pm

I'd like to configure my apache2 on an internet accessible machine to
forward all requests to a given subdomain to another server behind the
firewall. Basically I have the apache2 on box A set up correctly with
some subdomains, what I now want to do is let this server act as a
transparent proxy to access box B which would otherwise not be
accessible from the internet. Is there a way I can do this?

Regards,
Snyke
--
Christian 'Snyke' Decker
http://www.snyke.net

Davide Bianchi

2007-06-15, 1:23 pm

On 2007-06-15, Snyke <Decker.Christian@gmail.com> wrote:
> I'd like to configure my apache2 on an internet accessible machine to
> forward all requests to a given subdomain to another server behind the
> firewall.


You need a mixture of vhosts and proxy:

<VirtualHost *:80>
ServerName your-subdomain.domain.here
ProxyPass / http://your.internal.machine.here/
ProxyPassReverse / http://your.internal.machine.here/
</VirtualHost>

Davide

--
Windows NT encountered the following error: The operation completed
successfully.
-- From a Slashdot.org post
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com