Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

nginx reverse proxy for confluence server through ssl tunnel

Hi all, I have some problems to config my nginx reverse proxy for confluence. 

I use an SSH tunnel to connect to the server on which Confluence is running.
So far no problem. (ssh tunnel -> confluence) I use following URL:  http://localhost:8090/confluence;

Now I want to include ngnix-reverse proxy.
ssh tunnel -> nginx proxy -> confluence
If I use the common confuration that is offered here, no connection is made.

my configuration looks like this

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://localhost:8090/confluence;


what i see in my browser is the following: 

i call following url

http://localhost:88/confluence (a connection to nginx server over the ssh tunnel, that lisens on port 80) I see that the ngnix server gets the request from my remote client.

suddenly the url is adjusted and becomes 


and I get 404 back.

Has anyone had similar experiences?

How did you solve the problem?




Log in or Sign up to comment

Atlassian Community Events