Running GlassFish V3 with Apache httpd via mod_proxy_ajp

Skip to end of metadata
Go to start of metadata

GlassFish Configuration

  • Create a mod_ajp enabled network listener
  • Restart GlassFish

Note : the above works with 3.1.2.  The trunk needs a jk-enabled http instead of network-listener. This will be supported in the future Grizzly version.

Apache Configuration

  • Install apache httpd server & mod_proxy_ajp (mod_proxy_ajp is built as part of apache httpd)
  • Edit httpd.conf to contain
  • Open confg/other/ajp.config and paste the following
  • Start Apache

Now any http://localhost:80 request will direct to GlassFish

If you need only redirect certain webapp (ex. hello), you can modify ajp.config

Now only http://localhost:80/hello request will direct to GlassFish hello application.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.

The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.