I am trying to set up JIRA and Confluence on same host with same IP and different DNS names behind Apache reverse proxy.  But having a bit of trouble as this is first time I tried this. I have a .conf file in vhosts.d directory with the following.

 

## JIRA 
## DNS Name is: xx.xx.mycompany.com

NameVirtualHost xx.xx.mycompany.com

<VirtualHost *:80>
 ServerName xx.xx.mycompany.com
 ProxyPass / http://localhost:8080/
 ProxyPassReverse / http://localhost:8080/
 ServerAdmin jira@mycompany.com
</VirtualHost>

## Confluence 
## DNS Name is: yy.yy.mycompany.com 

NameVirtualHost yy.yy.mycompany.com

<VirtualHost *:80>
 ServerName yy.yy.mycompany.com
 ProxyPass / http://localhost:8090/
 ProxyPassReverse / http://localhost:8090/
 ServerAdmin confluence@mycompany.com
</VirtualHost>
From browser if I enter JIRA DNS(xx.xx.mycomany.com) I get proxied through to Jira. Great smile
If I enter the Confluence DNS(yy.yy.mycompany.com) I get proxied through to JIRA again sad
What am I doing wrong?

2 answers

1 accepted

Try changing 

NameVirtualHost xx.xx.mycompany.com

to

NameVirtualHost *:80

 

To verify configuration, try running

httpd -S
or 
apache2ctl -S

You can add CustomLog directive to both VirtualHost sections to verify that you are actually reaching the host that is intended. And make sure... that your DNS records are correct wink

Really no difference :-(

Did you try addinng CustomLog directives and verified that the requests go to the respective vhosts?

I got this to work smile There was also the little issue of getting port 80 opened on the internal network for authorized users.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,777 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot