httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Httpd Wiki] Update of "Recipies/TomcatReverseProxy" by pctony
Date Mon, 16 Oct 2006 22:41:09 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by pctony:

The comment on the change is:
copied from ebp-moin

New page:
= Setting up a reverse proxy to a Tomcat server =

In this How-To guide, we will show you how to set up a [
reverse proxy] between your Apache webserver and your Tomcat server.

=== Prerequisites ===

For this you are going to need the following

||Tomcat|| |||| ||Tomcat application server.||

Apache proxy directives can be used in two contexts - server config and virtual host. The
examples below will be in the server config context as well as pertain to Apache that has
been compiled with the source package from

To use the apache proxy directives you need to have the following modules loaded:

{{{LoadModule proxy_module modules/
LoadModule proxy_http_module modules/

Those lines above need to be put in the Apache configuration file where other '''!LoadModule'''
lines are set, like for example, httpd.conf.

Next, in your configuration file add:

{{{# mod_proxy setup.
ProxyRequests Off
ProxyPass /webapps http://localhost:8080
ProxyPassReverse /webapps http://localhost:8080

The directives above secures your Apache server and sets up the reverse proxy to the Tomcat
server. In this example, the Tomcat server and Apache webserver are on the same machine and
Tomcat is listening on the default port of 8080.

You can test to see that your proxy is working by accessing http://localhost/webapps. You
should see the default Tomcat homepage. Note, that '''/webapps''' in the '''!ProxyPass'''
and '''!ReverseProxyPass''' lines can be whatever you want. You can use '''/foo''' if you
want and you can access Tomcat with http://localhost/foo.

With a default Tomcat setup, you will have broken links in the '''Tomcat Manager''' page.
Learn how to fix them with [:HTTPDocsWiki/recipies/TomcatModProxyHTML:mod_proxy_html].

For more complete information on mod_proxy, see the [ Apache
For more complete information on reverse proxies, see [
ApacheWeek reverse proxies].[[BR]]

View raw message