logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse Proxy help
Author
KaptKaos



Joined: 27 Aug 2010
Posts: 4

PostPosted: Fri 27 Aug '10 21:40    Post subject: Reverse Proxy help Reply with quote

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: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 30 Aug '10 11:59    Post subject: Reply with quote

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

PostPosted: Mon 30 Aug '10 22:42    Post subject: Reply with quote

Thanks, James

I'm sure I'll be back with questions.
Back to top


Reply to topic   Topic: Reverse Proxy help View previous topic :: View next topic
Post new topic   Forum Index -> Apache