diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-11-08 11:02:37 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-11-09 09:26:05 +0100 |
| commit | b27be0b8574f770d3a5aa0299be7d3c3fea744f4 (patch) | |
| tree | 6a8822593215aead60cabbf6d1035a387ca34eca /phpBB | |
| parent | 27e95864a8d3d05bc85578880a567422ead96b22 (diff) | |
| download | forums-b27be0b8574f770d3a5aa0299be7d3c3fea744f4.tar forums-b27be0b8574f770d3a5aa0299be7d3c3fea744f4.tar.gz forums-b27be0b8574f770d3a5aa0299be7d3c3fea744f4.tar.bz2 forums-b27be0b8574f770d3a5aa0299be7d3c3fea744f4.tar.xz forums-b27be0b8574f770d3a5aa0299be7d3c3fea744f4.zip | |
[ticket/14271] Improve try_files and use split path info
PHPBB3-14271
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/docs/nginx.sample.conf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/docs/nginx.sample.conf b/phpBB/docs/nginx.sample.conf index 6c701b0218..8b5fa6aa7b 100644 --- a/phpBB/docs/nginx.sample.conf +++ b/phpBB/docs/nginx.sample.conf @@ -83,11 +83,13 @@ http { } # Pass the php scripts to fastcgi server specified in upstream declaration. - location ~ \.php$ { + location ~ \.php { # Unmodified fastcgi_params from nginx distribution. include fastcgi_params; # Necessary for php. - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_split_path_info ^(.+\.php)(/.*)$; + fastcgi_param PATHINFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_pass php; } |
