I have Setup JIRA and CONFLUENCE on CentOS.
Confluence is working like a charm, but JIRA has some issues with the Reverse Proxy.
My Setup is:
Apache with SSL --> JIRA
Apache Config:
<Virtualhost *:80>
ServerName subdomain.domain.xyz
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Virtualhost>
<Virtualhost 1.2.3.4:443>
ServerName subdomain.domain.xyz
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://localhost:8080/
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/ssl/certs/XXX.crt
SSLCertificateKeyFile /etc/ssl/certs/XXX.key
SSLCertificateChainFile /etc/ssl/certs/XXX.crt
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
<Location />
Order allow,deny
Allow from all
</Location>
</Virtualhost>
Server.XML
<Connector port="8080"
proxyname="subdomain.domain.xyz"
proxyport="443"
secure="true"
scheme="https"
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="8443"
acceptCount="100"
disableUploadTimeout="true"/>
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8081" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/>
I have already found this:
https://answers.atlassian.com/questions/11992128
But its not working. You guys have any ideas?
I'm always getting:
Mismatched URL Port
JIRA is reporting that it is running on the port '80', which does not match the hostname used to run these diagnostics, '443'.
and
com.atlassian.gadgets.dashboard.internal.diagnostics.UrlPortMismatchException: Detected URL port, '80', does not match expected port, '443'