Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

second path redirect does not work

$
0
0
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;
}

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>