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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

116 views 0 3
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