| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Reverse Proxy help |  |  
| Author |  |  
| KaptKaos 
 
 
 Joined: 27 Aug 2010
 Posts: 4
 
 
 | 
|  Posted: Fri 27 Aug '10 21:40    Post subject: Reverse Proxy help |   |  
| 
 |  
| I want to set-up a server outside of our LAN and Firewall to act as a Reverse Proxy to a server inside our LAN. 
 The server inside the LAN runs Apache 2.2.3 on a Windows 2003 server.  The server outside the LAN will use the same OS and Apache version.
 
 Is there a sample configuration file available that I can work with to set this up?  I’m looking for a barebones file that only loads the needed modules to function as a Reverse Proxy, and provides the best security to protect the LAN.
 
 Thanks.
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Mon 30 Aug '10 11:59    Post subject: |   |  
| 
 |  
| The number of modules depends how you want to connect to the internal server. I think with http is enough. There is no need for SSL. 
 So you need
 
 
 mod_proxy: The core module deals with proxy infrastructure and configuration and managing a proxy request.
mod_proxy_http: This handles fetching documents with HTTP and HTTPS.
mod_headers: This modifies HTTP request and response headers.
 
 
  	  | Code: |  	  | LoadModule  proxy_module         modules/mod_proxy.so
 LoadModule  proxy_http_module    modules/mod_proxy_http.so
 LoadModule  headers_module       modules/mod_headers.so
 
 | 
 
 inside a vhost
 
  	  | Code: |  	  | ProxyPass       /  http://internal1.example.com/
 ProxyPassReverse / http://internal1.example.com/
 
 | 
 
 if you have more questions please ask again.
 |  |  
| Back to top |  |  
| KaptKaos 
 
 
 Joined: 27 Aug 2010
 Posts: 4
 
 
 | 
|  Posted: Mon 30 Aug '10 22:42    Post subject: |   |  
| 
 |  
| Thanks, James 
 I'm sure I'll be back with questions.
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |