Skip to main content

If a customer would like to remove port 8080 or 8090 (or 7990 etc) from the URL, you will need to install mod_proxy.

Assumptions

  • You are running Linux (RedHat, CentOS etc)

Step by Step Guide

  1. yum install httpd
  2. nano /etc/httpd/conf.d/jira.conf (or confluence.conf)
  3. Use one of the following snippets
    • JIRA: <VirtualHost *>
      ServerName jira.example.com
      ProxyRequests Off
      <Proxy *>
      Order deny,allow
      Allow from all
      </Proxy>

      ProxyPass / http://localhost:8080/
      ProxyPassReverse / http://localhost:8080/
      <Location />
      Order allow,deny
      Allow from all
      </Location>
      </VirtualHost>

    • Confluence: <VirtualHost *>
      ServerName confluence.example.com
      ProxyRequests Off
      <Proxy *>
      Order deny,allow
      Allow from all
      </Proxy>

      ProxyPass / http://localhost:8090/
      ProxyPassReverse / http://localhost:8090/
      <Location />
      Order allow,deny
      Allow from all
      </Location>
      </VirtualHost>

  4. nano /etc/httpd/conf/httpd.conf
    1. AFTER: # Load config files in the "/etc/httpd/conf.d" directory, if any.
      IncludeOptional conf.d/*.conf
    2. ADD: LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
      LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
  5. systemctl start httpd
  6. chkconfig httpd on
  7. /usr/sbin/setsebool -P httpd_can_network_connect 1
  8. systemctl stop jira
  9. cd /opt/atlassian/jira/conf (or confluence/conf)
  10. cp server.xml server.xml.bak
  11. nano server.xml
    • Add the proxyName and proxyPort at the bottom
    • <Connector port="8080"maxThreads="150"
      minSpareThreads="25"
      connectionTimeout="20000"
      enableLookups=”false”
      maxHttpHeaderSize=”8192″
      protocol=”HTTP/1.1″
      useBodyEncodingForURI=”true”
      redirectPort=”8443″
      acceptCount=”100″
      disableUploadTimeout=”true”

      proxyName=”jira.example.com”
      proxyPort=”80″ />

    • <Connector port="8090"maxThreads="150"
      minSpareThreads="25"
      connectionTimeout="20000"
      enableLookups=”false”
      maxHttpHeaderSize=”8192″
      protocol=”HTTP/1.1″
      useBodyEncodingForURI=”true”
      redirectPort=”8443″
      acceptCount=”100″
      disableUploadTimeout=”true”

      proxyName=”confluence.example.com”
      proxyPort=”80″ />

  12. Save (ctrl + X … Y … Enter)
  13. systemctl restart httpd
  14. systemctl restart jira
Email Newsletter
close slider

    Join Our Email Newsletter

    Want to hear the latest industry news and information curated for you in your inbox?