-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
location /prefix/path/ {
proxy_pass http://localhost:5000;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
/Root (CONCAT)
location /prefix/path {proxy_pass http://localhost:5000;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000/prefix/path/verify
http://localhost:8443/prefix/pathverify -> http://localhost:5000/prefix/pathverify
location /prefix/path {proxy_pass http://localhost:5000/;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000//verify
http://localhost:8443/prefix/path/verify -> http://localhost:5000/verify
location /prefix/path {proxy_pass http://localhost:5000/vip;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000/vip/verify
http://localhost:8443/prefix/pathverify -> http://localhost:5000/vipverify
/Root/ (Donot Concat)
location /prefix/path/ {proxy_pass http://localhost:5000;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000/prefix/path/verify
http://localhost:8443/prefix/pathverify -> nginx 404 error
(CORRECT AND SAFE)
location /prefix/path/ {proxy_pass http://localhost:5000/;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000/verify
http://localhost:8443/prefix/pathverify -> nginx 404 error
(CORRECT AND SAFE)
location /prefix/path/ {proxy_pass http://localhost:5000/vip;}
http://localhost:8443/prefix/path/verify -> http://localhost:5000/COVALENTAPIS/vipverify
http://localhost:8443/prefix/pathverify -> nginx 404 error
location pattern {proxy_pass http://localhost:5000;} -> add pattern in request
location pattern {proxy_pass http://localhost:5000/;} ->Remove pattern from request url
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request