Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Software 7.8.1 w/Apache 2.4 Reverse Proxy Errors

Patrick Kyne March 30, 2018 edited

Environment:

  • CentOS 7.4 Server
    • Apache 2.4
      • mod_proxy
      • mod_proxy_ajp
      • mod_ssl
      • mod_rewrite
      • listen on 0.0.0.0:443
      • vhost.conf:
        • <IfDefine SSL>
          <IfDefine !NOSSL>


          <VirtualHost _default_:443>

                  # JIRA Proxy Configuration:
                  <Proxy *>
                          Require all granted
                  </Proxy>

                  SSLProxyEngine          On
                  ProxyRequests           Off
                  ProxyPreserveHost       On
                  ProxyPass               /jira       ajp://127.0.0.1:8009/jira
                  ProxyPassReverse        /jira       ajp://127.0.0.1:8009/jira

                  #  General setup for the virtual host
                  DocumentRoot "/srv/www/htdocs"
                  ServerName external_server_name.fqdn:443
                  ErrorLog /var/log/apache2/error_log
                  TransferLog /var/log/apache2/access_log

                  SSLEngine on

                  SSLCertificateFile /etc/apache2/ssl.crt/external_server_name.crt
                  SSLCertificateKeyFile /etc/apache2/ssl.key/external_server_name.key

                  CustomLog /var/log/apache2/ssl_request_log   ssl_combined

          </VirtualHost>

          </IfDefine>
          </IfDefine>
    • Atlassian Jira Software 7.8.1
      • {install directory}/conf/server.xml (comments removed for brevity):
        • <?xml version="1.0" encoding="utf-8"?>
          <Server port="8005" shutdown="SHUTDOWN">
              <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
              <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
              <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
              <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
              <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

              <Service name="Catalina">

                  <Connector port="8009" redirectPort="8443" enableLookups="false" protocol="AJP/1.3" URIEncoding="UTF-8"/>

                  <Engine name="Catalina" defaultHost="localhost">
                      <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

                          <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

                              <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
                                        factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
                              <Manager pathname=""/>
                              <JarScanner scanManifest="false"/>
                          </Context>

                      </Host>

                      <Valve className="org.apache.catalina.valves.AccessLogValve"
                             pattern="%a %{jira.request.id}r %{jira.request.username}r %t &quot;%m %U%q %H&quot; %s %b %D &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{jira.request.assession.id}r&quot;"/>

                  </Engine>
              </Service>
          </Server>
      • Base URL configured as: https://external_server_name.fqdn/jira

Issues:

 

I've reviewed all available KBs (keywords: apache, jira, confluence, ajp, reverse-proxy, etc.) and comments, but must be missing something.

Any ideas as to what I may have wrong or missing?

 

1 answer

0 votes
KellyW
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2018

Hi Patrick,

 

Seems like the following proxy settings are missing in the Tomcat's Connector directive. Example:

scheme="https" proxyName="<FQDN_APACHE_SERVES>" proxyPort="443"

 

Check out this KB -- Proxying Atlassian server applications with Apache HTTP Server

 

Regards,
Kelly

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events