Apache as a two JIRAs frontend

Hi

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
</VirtualHost>


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

<Proxy *>
        Order deny,allow
                Allow from all
                </Proxy>
                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/
</VirtualHost>
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

211 views 1 18
Join discussion

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