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

Bamboo login url redirect issue

junfang li October 15, 2017

I installed bamboo in a test environment, when i visit https://dev.xxx.com, it is redirected to https://dev.xxx.com/userlogin!doDefault.action?os_destination=%2Fstart.action?os_destination=%2Fstart.action

os_destination=%2Fstart.action appears twice in the url, so after i login i got an error page.

I used Nginx as a HTTPS reverse proxy. And http between Nginx and Bamboo Tomcat.

Nginx:

server {
listen 443 ssl;
server_name dev.xxx.com;

ssl_certificate xxx.crt;
ssl_certificate_key xxx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;

access_log xxx.log;
error_log xxx.log;

location / {
proxy_pass http://ip6-localhost:8085;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

server {
listen 80;
server_name dev.xxx.com;

rewrite ^(.*)$ https://$server_name$request_uri permanent;
}

 

Bamboo:

<Service name="Catalina">

<Connector
protocol="HTTP/1.1"
port="8085"

maxThreads="150" minSpareThreads="25"
connectionTimeout="20000"
disableUploadTimeout="true"
acceptCount="100"

enableLookups="false"
maxHttpHeaderSize="8192"

useBodyEncodingForURI="true"
URIEncoding="UTF-8"

/>

 

Capture.JPG

 

Please help. Thanks.

 

2 answers

1 accepted

1 vote
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2017

Hi Junfang,

Looks like you need to add the proxyName and proxyPort parameters to the server.xml file as described in Securing Bamboo behind nginx using SSL.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

0 votes
nehakakar July 6, 2023

Try this

server {
listen 443 ssl;
server_name dev.xxx.com;

ssl_certificate xxx.crt;
ssl_certificate_key xxx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;

access_log xxx.log;
error_log xxx.log;

location / {
proxy_pass http://ip6-localhost:8085;
proxy_redirect http://ip6-localhost:8085/ /; # Specify the correct base URL of Bamboo here

proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

 

After making the configuration change, restart Nginx and try accessing Bamboo again to see if the login URL redirect issue is resolved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events