Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence url not working outside the local network due to NGINX config

Deleted user September 27, 2020

I want to move and merge confluence from Server A to Server B. Server B has some settings that allows the users to access confluence without the fully qualified url. So the users can type something like http://servername:8090/confluence; and can access it fine since those users are on the same network. But the problem occurs for the people who are outside the network

 

Now I want to change those settings on the server so anyone with the qualified domain name/url can access it. I think something needs to be updated on NGINX config but I am not sure what needs to be updated. See the current config looks like something below.

 

location /confluence {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://servername:8090/confluence;
client_max_body_size 10M;
}

 

Also, the base url is set to http://servername:8090/confluence which we prefer not to change if we can avoid it.

 

We are facing exactly similar issue in Jira as well

Any help in this regard would be much appreciated. thanks

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

What does "not working" look like?

Have you followed the instructions for setting up Nginx as a proxy in full (as you've only given us a snippet of your Nginx config and not mentioned the other things you need to do, I would guess not) 

It's pretty much the same setup for Jira and Confluence in the proxy - see https://confluence.atlassian.com/jirakb/configure-jira-server-to-run-behind-a-nginx-reverse-proxy-426115340.html

Keeping the same base url for the systems is not an option.  You must set it to the url upon which your users will be using to access it (i.e. the one the proxy presents)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events