tried now with location:
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
location /bamboo {
rewrite ^/bamboo(.*)$ http://mydomainname:8085/$1 last;
}
location /api {
rewrite ^/api(.*)$ http://mydomainname:8080/$1 last;
}
return 403;
}
Still no success :(
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
location /bamboo {
rewrite ^/bamboo(.*)$ http://mydomainname:8085/$1 last;
}
location /api {
rewrite ^/api(.*)$ http://mydomainname:8080/$1 last;
}
return 403;
}
Still no success :(