Can't proxying multiple sites in same domain

Hi,

I'm using Jira and confluence, and try to configure a reverse proxying(IIS). First I configure my Jira service by this Guide, and it worked. Then I try to configure my confluence service using the same guide, and changed server.xml/web.xml, but it's not working.

My Jira site is http://office.demo.com/jira, and confluence should be http://office.demo.com/confluence. I can visit my confluence site by http://localhost:8090/confluence, and can't visit from http://localhost/confluence. It gives me a 404 error.

I think this problem is relevant with my IIS URL rewite configuration. Currently it looks like this:

捕获.PNG

Both of these sites' maching parrtern is "(.*)". Should I change the matching parrtern? Or how to modify it?

Thanks!

1 answer

0 vote

Localhost is fine for testing a service is running, but it always means "this machine". 

Your tests on localhost are looking fine though - you've got Confluence on port 8090, context /confluence and you can see it there from localhost, but not on a different port.

Your next test should be to use the IIS interface - from another machine, try <ip address of server>:8090/confluence

Thanks Nic, I can visit demo:8090/confluence, but can’t visit demo/confluence.

 I think it’s cause by conflicting of URL rewrite since my Jira and confluence is running on the same server. Specifically, I think it’s relevant with my URL rewriting matching parrtern. Currently both Jira and confluence is (.*), and probably IIS can’t detect which request is for Jira and which is for confluence.

Basicly I want my IIS configure as demo.com/Jira rewrite to demo.com:8080/Jira(this already worked), and demo.com/confluence rewrite to demo.com:8090/confluence(which currently not worked).

Thanks again.

Yes, it must be the IIS settings. I can't pretend I know why it has to be so complex in IIS (It's two lines of config in Apache and one in Nginx), but yes, you will need to adjust the rewrites so they include the ports.

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
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,054 views 15 13
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