OMNI 3.0 Portal on TOMCAT 7 with Apache as webserver

Redirect Apache 2.x Request to Tomcat 7.x.x using mod_proxy Module

After installing Linux by default make Apache 2.x to run on port 80 and run Tomcat 7.x.x on port 8080

Now go to Apche2 installation folder\Apache2.2\conf folder. Open httpd.conf to Uncomment the following three lines,

  1. LoadModule proxy_module modules/mod_proxy.so
  2. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  3. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

Look for the lineand uncomment it.

Add the following entry into the above section of httpd.conf file

ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

<Location / >
Order allow,deny
Allow from all
</Location>

It’s Done. Now by typing http://localhost; tomcat default page will come up.

What is Proxy ?

Benefits of using Apache as Proxy

Advertisement

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.