Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to implement SSL by proxying Jira Service desk with Apache 2.4 server

Shejal Payer August 6, 2020

Hi All,

I want to run  jira application on http and https, for that in server.xml we mentioned 2 connector port entries like below

<!-- Relaxing chars because of JRASERVER-67974 -->
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="https" proxyName="xxxx.xx.co.in" proxyPort="443"/>

<Connector port="8889" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>

And from network side, we have created LB and activated SSL certificate on that LB. After that on Apache server we have created Virtual host and reverse proxy like below

##############For Jira#####################################  

<VirtualHost *:80>
    ServerName xxxx.xx.co.in
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/*
RewriteRule .* http://xxxx.xx.xx.xx:8889/ [P,L]
</VirtualHost>
 

#####Added on 5th Aug for Jira#######################  
ProxyPass / http://xxxx.xx.xx.xx:8889/
ProxyPassReverse / http://xxxx.xx.xx.xx:8889/   #####Added on 5th Aug for Jira#######################

But still it is not working and giving error like below

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure stylesheet '<URL>'. This request has been blocked; the content must be served over HTTPS.
20Refused to execute script from '<URL>' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
VM8 Dashboard.jspa:1 Refused to execute script from 'https:/xxxx.xx.co.in/s/10fbafb97f37bd1a002b628e38adb091-CDN/t38b72/713000/802b10c2ff11c51df1201961a4b718d8/437e3a802221a5e0e78effaf664704e2/_/download/contextbatch/js/_super/batch.js?locale=en-US&spectrum=true' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
VM8 Dashboard.jspa:1 Refused to execute script from '

Please help me with SSL implementation and let me know if any workaround is there.

1 answer

1 accepted

0 votes
Answer accepted
Shejal Payer August 21, 2020

Hi All,

I have made some chnages in virtual host configuration of Apache like below

<VirtualHost *:80>
    ServerName https://xxxx.xx.co.in:443
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/*
ProxyPass / http://jxxx.xx.xx:8080/
ProxyPassReverse / http://xxx.xx.xx:8080/   </VirtualHost>

During proxy pass, we were passing wrong port that is 8889 and after we made changes with 8080 port it start working on https.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events