Correction : nginx : if is evil.
[lhc/ateliers.git] / etc / nginx / site.d / cyclo-letabli / site.conf
index f0a2f14..a06f71b 100644 (file)
@@ -50,10 +50,9 @@ location ~ \.php(|/.+)$ {
        fastcgi_pass_header Cookie;
        fastcgi_pass_header Set-Cookie;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
-       if (!-f $document_root$fastcgi_script_name) {
-               # This is a robust solution for path info security issue and works with "cgi.fix_pathinfo = 1" in /etc/php.ini (default)
-               return 404;
-        }
+       try_files $fastcgi_script_name =404;
+               # Check for path info security issue
+
        
        fastcgi_pass unix:/run/php5/fpm/letabli;
  }