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

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
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
Posted 12 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

35 views 0 5
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