Setting up reverse proxy in Apache Http Server

1. Install Apache web server.

2. Edit the httpd.conf file with following modifications.  You can find this configuration file under <Apache installed directory> /conf directory. Take a backup of existing configuration files before making the changes.

3. Uncomment the following lines under LoadModule section.
(assuming you working on windows environment/ the file name and path for Load File entry will change for linux)

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadFile D:\downloads\apachedll\libxml2.dll

4. Reverse proxy requires the following libraries (if you are downloading the Apache binary files, these files are not included in the distribution)

Attached zip file contains these files for windows environment here.
For linux, you have to get equivalent libraries

5.Setup reverse proxy entries by adding the following lines at the end of httpd.conf file
ProxyPass   /a1/site    http://mysitename/consumer/site
ProxyPass   /a1/services  http://mysitename/consumer/services

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s