Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,570 views 1 9
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