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

SSL proxy for jira and confluence applications on same domain (jira without context path)

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2017

I have jira and confluence running on separate tomcat on the same server machine

jira : www.example.com 
confluence : www.example.com/wiki

I have made the configuration and SSL works for jira but not for confluence.

When I try to go to https:www.example.com/wiki, i get a page not found exception

httpd.conf

ServerName example.com

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

SSLEngine               On

SSLCertificateFile      /etc/ssl/certs/mydomain_com_with_chain.crt
SSLCertificateKeyFile   /etc/ssl/private/mydomain_com.key

ProxyPass               /       http://myserver:8081/
ProxyPassReverse        /       http://myserver:8081/

ProxyPass               /wiki       http://myserver:8082/wiki
ProxyPassReverse        /wiki       http://myserver:8082/wiki

 

The server.xml configuration is correct with the connector having proxy parameters

 <Connector port="8081"
               maxThreads="150"
               minSpareThreads="25"
               connectionTimeout="20000"
               enableLookups="false"
               maxHttpHeaderSize="8192"
               protocol="HTTP/1.1"
               useBodyEncodingForURI="true"
               acceptCount="100"
               disableUploadTimeout="true"
               scheme="https"
               proxyName="example.com"
               proxyPort="443"
               secure="true"/>

Can someone please point out the problem here . I suspect it is because jira does not have a context path. However, I cannot have a context path for jira. Any suggestions highly appreciated.

1 answer

1 accepted

1 vote
Answer accepted
Lars Olav Velle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2017

Mizan,

What if you add a proxy for /wiki in before /

ProxyPass /wiki http://myserver:8082/wiki
ProxyPassReverse /wiki http://myserver:8082/wiki

ProxyPass
/ http://myserver:8081/
ProxyPassReverse / http://myserver:8081/

Also, make sure you have ProxyPreserveHost On

Cheers,

Lars

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2017

Hi Lars,

Thanks for your response.

Unfortunately, this does not help . I made the changes and restarted apache.

I am checking the URL in Chrome incognito mode

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2017 edited

Hi Lars,

Your answer was correct, I had not removed my old configuration was being included from a different file.

However, Confluence now shows us a different view. Do you know how this can be solved.

confssl.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events