Hi,
I have first http to https redirects - works
then the path /bamboo to redirect to http:...:8085 - works
second path redirect from /api to http:...:8080 does not work it says not found (https://mydomainname/api):
# Redirect http -> https
#
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
rewrite ^/bamboo(.*)$ http://mydomainname:8085/$1 last;
rewrite ^/api(.*)$ http://mydomainname:8080/$1 last;
return 403;
}