Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 

http://localhost/confluence/

and I get 404 back.

Has anyone had similar experiences?

How did you solve the problem?

 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

34,687 views 26 119
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you