Answer the question
In order to leave comments, you need to log in
Why does nginx reverse proxy not work if the last / is not put at the end of the browser?
Here is such a setup on nginx reverse proxy:
location /UNDVXE5A/ {
proxy_pass https://10.15.0.109/UNDVXE5A/;
proxy_set_header Host $proxy_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
Answer the question
In order to leave comments, you need to log in
https://nginx.org/ru/docs/http/ngx_http_core_modul...
If location is prefixed with a trailing slash and requests are processed using proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, memcached_pass, or grpc_pass, special processing occurs. A request with a URI equal to this string but without a trailing slash will return a permanent 301 redirect to a URI with a trailing slash.
absolute_redirect off;
since your location is specified /UNDVXE5A/
, then this location will only work for /UNDVXE5A/
.
but it redirects https://domen:7323/UNDVXE5A
to https://domen/UNDVXE5A/
because, as I wrote above, your URL does not fall under the above rule, but somewhere in the config there is a rule or a set of rules responsible for redirecting from https://domen:7323/UNDVXE5A
to https://domen/UNDVXE5A/
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question