Forums

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

Redirect not working and forwarding to localhost:7990 and Base URL mismatch

Dikshant Rai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

Hi, I am trying to run bitbucket on a VM and I have setup SSL certificates and other configuration and I am able to see my login screen. The moment I added my user and password, it redirect me to localhost page i.e. http://localhost:7990 . I have checked everything and it does not look any issue with nginx because it only fails when it tries to go to home url. I also cannot see bitbucket.properties file by default at home_path/shared so I created one with below configuration.
Below is the configuration, I am using
Nginx configuration:

server { listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name bitbucket.xyz.com;
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_set_header X-Forwarded-Proto $scheme;
}

}

Bitbucket.properties:

server.port=7990
server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=bitbucket.xyz.com

 

1 answer

1 accepted

0 votes
Answer accepted
Dikshant Rai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2024

Answer for both is either restart your VM or follow the doc to stop and start the bitbucket again.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.19.9
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events