What is a good way to put confluence at http://mydomain.com/confluence with nginx

The answer I found elsewhere on Atlassian didn't seem to be as easy as what I found.

1 answer

1 accepted

I found I could use the Atlassian instructions on using a context path to make the path contain 'confluence', like:

http://mydomain.com/confluence

And then I had nginx (which in this case is on another machine, but I bet it would work fine on the same machine as well), contain this in a server block:

 location /confluence {
proxy_pass http://Ubuntu1:8090/confluence;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

Confluence is now running on VM that is not exposed on the Internet and my server running nginx is now basically a proxy for it.

A nice thing is that I can snapshot the VM machine to have a working backup.

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
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

375 views 20 10
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