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/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
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)
libxml2.dll
iconv.dll
zlib1.dll

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
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s