Apache as a two JIRAs frontend

Marek Wasilewski August 17, 2015

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

0 votes
Answer accepted
michael_ngangom
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.
August 17, 2015
Marek Wasilewski August 17, 2015

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.

michael_ngangom
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.
August 17, 2015

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

Marek Wasilewski August 17, 2015

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

Marek Wasilewski August 18, 2015

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 :).

michael_ngangom
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.
August 18, 2015

cool! There you go!

michael_ngangom
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.
August 18, 2015

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