jira subdomain on Mod_proxy

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

This widget could not be displayed.

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

181 views 1 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