Apache as a two JIRAs frontend


I'm struggling with apache confiuration to reverse proxy 2 JIRA instances running on the same machine but different ports. I came up with this apache conf:

NameVirtualHost jira.mycompany.pl:80
<VirtualHost jira.mycompany.pl:80>
ServerAdmin blah@whatever
ServerName jira.mycompany.pl
ErrorLog logs/jira80.error.log
Redirect / http://jira.mycompany.pl:8666

NameVirtualHost jira.mycompany.pl:8666
<VirtualHost jira.mycompany.pl:8666>
ServerName jira.mycompany.pl
AllowEncodedSlashes On

<Proxy *>
        Order deny,allow
                Allow from all
                SSLEngine on
                SSLProxyEngine On
                SSLCertificateFile 2jiramycompanypl.cer
                SSLCertificateKeyFile jirakey.key
                ProxyRequests Off
                ProxyPreserveHost On
                ProxyPass / https://jira.mycompany.pl:8443/
                ProxyPassReverse / https://jira.mycompany.pl:8443/
proxy-host="jira.mycompany.pl" proxy-port="8666" proxy-scheme="https"

It seems like the first virtual host works but I cannot make apache do the second one. Please help smile

1 answer

1 accepted

Hi When I configured apache to terminate SSL and chat with tomcat by http it works like a charm. But I cannot make apache forward https traffic to tomcat. User<https>apache<https>tomcat not working but User<https>apache<http>tomcat goes like hell. That's where I'm stuck.

I hope tthis will solve the configuration issue you have. Do not forget to make the change on database side as well.

I'm getting "website not available" when trying to access your link :(

OK i found it. When configure http_proxy to run on a certain port, tell apache to listen on it... Otherwise you'll be struggling with not very talkative apache (no errors in logs) while you're saying lots of bad words :).

Ya sure- its extranet- my bad. you may refer the first link and if you scroll down at the end you will be able to see the settings.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,117 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you