NGINX mangling rewrites when encoded URLs present
Bob Smith
b631093f-779b-4d67-9ffe-5f6d5b1d3f8a at protonmail.ch
Sat May 5 11:21:21 UTC 2018
nginx version: nginx/1.13.12
This is my rewrite:
location / {
rewrite ^/(.*)$ https://example.net/$1 permanent;
}
I am getting some really odd behavior.
For example:
mysubdomain.example.com/CL0/https:%2F%2Fapple.com
Gets re-written to
example.net/CLO/https:/apple.com
Only one forward-slash, not two before apple.com. The original declaration was %2F%2F ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180505/d1d116ba/attachment.html>
More information about the nginx
mailing list