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

bitbucket and nginx reverse proxy


 I've followed many of the instructions here, but my BB reverse proxy doesn't seem to work correctly.  All of my other (similar) hosts work fine, but BB won't redirect correctly.


server {
proxy_read_timeout 600s;
location / {
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://bitbucket:7990;
proxy_set_header X-Real-IP $remote_addr;
port_in_redirect off;
proxy_redirect off;


In many cases it immediately reverts to http://bitbucket:7990

In some other cases it seemingly works, but clicking in "Bitbucket" logo in the upper left points to "http://bitbucket:7990"


Any help would be appreciated.


1 answer

1 accepted

0 votes
Answer accepted


Configuring a reverse proxy also requires some changes on the Bitbucket Server side, including a change of the Base URL in the server settings - did you adjust that accordingly?

What's more, you'll also need to tell Bitbucket Server about the fact that there is a reverse proxy - see (under Step 1) for the required configuration to be added.


Premier Support Engineer


Thank you!  I was missing a few steps. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,734 views 10 16
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