You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Cocker <pa...@tntpost.co.uk> on 2008/02/05 12:14:32 UTC

[users@httpd] Reverse proxy domain A to domain B

Is it possible to setup a reverse proxy which accepts connections for
external facing domain A and then passes them to internal only domain B?
Would that work?

Paul Cocker




TNT Post is the trading name for TNT Post UK Ltd (company number: 04417047), TNT Post (Doordrop Media) Ltd (00613278), TNT Post Scotland Ltd (05695897),TNT Post North Ltd (05701709) and TNT Post South West Ltd (05983401). Emma's Diary and Lifecycle are trading names for Lifecycle Marketing (Mother and Baby) Ltd (02556692). All companies are registered in England and Wales; registered address: 1 Globeside Business Park, Fieldhouse Lane, Marlow, Buckinghamshire, SL7 1HY.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Reverse proxy domain A to domain B

Posted by Tony Stevenson <to...@pc-tony.com>.
Tony Stevenson wrote:
> 
> Paul,
> 
> Yes that would work fine, so long as your reverse proxy can resolve all 
> the internal names.
> 
> The internal domain, does not need to, and probably should not, be 
> resolvable externally.
> 

For example:

<VirtualHost *:80>
  ServerName www.example.com
  ProxyPass / http://internal.example.int:3000/
  ProxyPassReverse / http://internal.example.int:3000/
</VirtualHost>

This would proxy internal.example.int, as www.example.com


Tony




Re: [users@httpd] Reverse proxy domain A to domain B

Posted by Tony Stevenson <to...@pc-tony.com>.
Paul Cocker wrote:
> Is it possible to setup a reverse proxy which accepts connections for
> external facing domain A and then passes them to internal only domain B?
> Would that work?
> 

Paul,

Yes that would work fine, so long as your reverse proxy can resolve all 
the internal names.

The internal domain, does not need to, and probably should not, be 
resolvable externally.


Tony