Welcome! Log In Create A New Profile

Advanced

Re: URL decode rewrite handling: + vs. %20

September 05, 2011 06:58AM
You can also use PCRE capturing inside virtual host configuration, to capture both SCRIPT_FILENAME and PATH_INFO without URL encoding:

location ~ ^(?<SCRIPT_FILENAME>.+\.php)$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$SCRIPT_FILENAME;
fastcgi_pass ...;
}

location ~ ^(?<SCRIPT_FILENAME>.+\.php)(?<PATH_INFO>.+)$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$SCRIPT_FILENAME;
fastcgi_param PATH_INFO $PATH_INFO;
fastcgi_param PATH_TRANSLATED $document_root$PATH_INFO;
fastcgi_pass phpfarm;
}
Subject Author Posted

URL decode rewrite handling: + vs. %20

signe September 02, 2011 09:21PM

Re: URL decode rewrite handling: + vs. %20

splitice September 03, 2011 06:24AM

Re: URL decode rewrite handling: + vs. %20

signe September 03, 2011 06:32AM

Re: URL decode rewrite handling: + vs. %20

locojohn September 05, 2011 06:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
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