Configuring mod_proxy for JIRA

If you need to configure a JIRA Standalone to run on Port 80 using an Apache which already is configured to do other tasks, you’ll need to observe the following steps.

  • Install mod_proxy and mod_proxy_ajp for apache 2.2.
  • Configure Apache’s httpd.conf using the following params:

ProxyRequests Off

Order deny,allow
Allow from all

ProxyPass /browse ajp://localhost:8089/browse
ProxyPassReverse /browse ajp://localhost:8089/browse
ProxyPass /secure ajp://localhost:8089/secure
ProxyPassReverse /secure ajp://localhost:8089/secure
ProxyPass /issues ajp://localhost:8089/issues
ProxyPassReverse /issues ajp://localhost:8089/issues
ProxyPassReverse /s ajp://localhost:8089/s
ProxyPass /rest ajp://localhost:8089/rest
ProxyPassReverse /rest ajp://localhost:8089/rest
ProxyPass /login.jsp ajp://localhost:8089/login.jsp
ProxyPassReverse /login.jsp ajp://localhost:8089/login.jsp
ProxyPass /plugins ajp://localhost:8089/plugins
ProxyPassReverse /plugins ajp://localhost:8089/plugins
ProxyPass /images ajp://localhost:8089/images
ProxyPassReverse /images ajp://localhost:8089/images
ProxyPass /images ajp://localhost:8089/charts
ProxyPassReverse /images ajp://localhost:8089/charts

Advertisements
This entry was posted in Distributed Computing, Enterprise Java and tagged . Bookmark the permalink.

2 Responses to Configuring mod_proxy for JIRA

  1. kbrnsr says:

    I have no idea if it’s the way you had to setup apache httpd back in 2011, but today is is more than enough to write:
    ProxyPass / ajp://localhost:8089/
    ProxyPassReverse / ajp://localhost:8089/

    This method can be used with every Atlassian products as long as the tomcat instance have an ajp connector configured in /conf/server.xml

    • itellity says:

      That was true in 2011 too. The reason why I listed all entries is that I already had an application with context root on that web server.

      That post is basically more note taking than anything else.

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