From b04de7196ac0033066e6736588695f9fb4fecfa8 Mon Sep 17 00:00:00 2001 From: QuentinFonteneau Date: Sat, 16 Mar 2013 11:01:10 +0100 Subject: [PATCH] precision on regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precise to use $1 and $2 for $script_name & $path_info if admin use ^(.+?\.php)(/.*)?$ instead of ^(?.+?\.php)(?/.*)?$ --- admin_manual/installation/installation_others.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin_manual/installation/installation_others.rst b/admin_manual/installation/installation_others.rst index b1db6fa52..632bd6ead 100644 --- a/admin_manual/installation/installation_others.rst +++ b/admin_manual/installation/installation_others.rst @@ -64,9 +64,11 @@ Nginx Configuration # regexp required pcre installed, otherwise try: ^(.+?\.php)(/.*)?$ location ~ ^(?.+?\.php)(?/.*)?$ { try_files $script_name = 404; + #Or try_files $1 = 404; if you use ^(.+?\.php)(/.*)?$ include fastcgi.conf; fastcgi_param PATH_INFO $path_info; + #Or fastcgi_param PATH_INFO $2; if you use ^(.+?\.php)(/.*)?$ fastcgi_param HTTPS on; fastcgi_pass 127.0.0.1:9000; }