Welcome! Log In Create A New Profile

Advanced

NGINX mangling rewrites when encoded URLs present

Bob Smith via nginx
May 05, 2018 07:22AM
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 ?_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX mangling rewrites when encoded URLs present

Bob Smith via nginx May 05, 2018 07:22AM

RE: NGINX mangling rewrites when encoded URLs present

Reinis Rozitis May 05, 2018 06:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready