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 :(by whiteadi - Other discussion
Actually first path redirect does not work anymore, it also redirects to https and say 404 not found. So: how can I have the 2 different path redirects to http with the different ports and rest http tp https ?by whiteadi - Other discussion
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 lasby whiteadi - Other discussion
![]() |
![]() |
![]() |
![]() |
|