Using mod_proxy for Confluence or Jira
This guide is applicable for Confluence and Jira.
Assumptions
- confluence or jira fully installed and working
- httpd 2.2.x or apache 2.2.x installed
- mod_proxy is enabled
Steps
- edit your port 443 vhost (typically at /etc/httpd/conf.d/ssl.conf), refer to generic mod_proxy.
- make sure the following exists in the file
<Location "/">
RewriteEngine on
RewriteBase /
RewriteRule ^confluence$ confluence [R]
</Location>
ProxyPass /confluence ajp://localhost:8009/confluence
<Location /confluence>
AuthType shibboleth
ShibRequireSession Off
require shibboleth
</Location>
- the above assumes that confluence is loaded on tomcat at /confluence and shibboleth lazy session is activated (refer to Shibbolizing Confluence or Shibbolizing Jira)
- modify $TOMCAT_HOME/conf/server.xml entry to include (find where port 8009 and copy it into below).
<Connector port="8009" address="127.0.0.1"
request.tomcatAuthentication="false" tomcatAuthentication="false"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
- restart tomcat and try to click on the login link at top right corner of https://MY_DNS/confluence
to top