mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/16242] Fix nginx redirection loop
PHPBB3-16242
This commit is contained in:
parent
04204c7ec6
commit
9c980256bf
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ http {
|
||||||
# Correctly pass scripts for installer
|
# Correctly pass scripts for installer
|
||||||
location /install/ {
|
location /install/ {
|
||||||
# phpBB uses index.htm
|
# phpBB uses index.htm
|
||||||
try_files $uri $uri/ @rewrite_installapp;
|
try_files $uri $uri/ @rewrite_installapp =404;
|
||||||
|
|
||||||
# Pass the php scripts to fastcgi server specified in upstream declaration.
|
# Pass the php scripts to fastcgi server specified in upstream declaration.
|
||||||
location ~ \.php(/|$) {
|
location ~ \.php(/|$) {
|
||||||
|
@ -104,7 +104,7 @@ http {
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||||
try_files $uri $uri/ /install/app.php$is_args$args;
|
try_files $uri $uri/ /install/app.php$is_args$args =404;
|
||||||
fastcgi_pass php;
|
fastcgi_pass php;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue