jira subdomain on Mod_proxy

josh wallace September 29, 2014

So I have setup confluence on one server and JIRA on a different server. I followed the guide here: https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy To get confluence up and running on confluence2.corp.domain.com

JIRA is currently running on http://jira.corp.domain.com:8080/jira but I need it to run as confluence.corp.zulily.com/JIRA

I tried to edit the virtualhosts file in apache as follows: 

NameVirtualHost *

<VirtualHost *>

    ServerName confluence2.corp.domain.com/jira

 

    ProxyRequests Off

    <Proxy *>

        Order deny,allow

        Allow from all

    </Proxy>

 

    ProxyPass / http://jira.corp.domain.com:8080/jira

    ProxyPassReverse / http://jira.corp.domain.com:8080/jira

    <Location />

        Order allow,deny

        Allow from all

    </Location>

</VirtualHost>

 

<VirtualHost *>

    ServerName confluence2.corp.domain.com

 

    ProxyRequests Off

    <Proxy *>

        Order deny,allow

        Allow from all

    </Proxy>

 

    ProxyPass / http://confluence2.corp.domain.com:8090/

    ProxyPassReverse / http://confluence2.corp.domain.com:8090/

    <Location />

        Order allow,deny

        Allow from all

    </Location>

</VirtualHost>

confluence2.corp.domain.com works perfectly but confluence2.corp.domain.com/JIRA just shows confluence with a page cannot be displayed. Any Idea how I could execute this?

1 answer

1 accepted

1 vote
Answer accepted
Tiago Comasseto
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.
September 29, 2014

Hi Josh, I think that the problem here is the the context path /jira. I'd suggest to change this:

ProxyPass / http://jira.corp.domain.com:8080/jira    
ProxyPassReverse / http://jira.corp.domain.com:8080/jira

to this:

ProxyPass /jira http://jira.corp.domain.com:8080/jira    
ProxyPassReverse /jira http://jira.corp.domain.com:8080/jira

And restart both JIRA and Apache.

I hope it helps.

Cheers

josh wallace September 29, 2014

You sir are correct - thank you! Always good to have a second pair of eyes!

Tiago Comasseto
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.
September 29, 2014

Suggest an answer

Log in or Sign up to answer