aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-08-09 18:33:48 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-08-09 18:33:48 +0200
commit23ca9cd81d51624b348164b9104a6e0287d2918e (patch)
tree5ffcb3c95cf348fa0fc6bb55e926258874046137
parent86f94f922ce53b58d27a4f294248f5aa32fc97f8 (diff)
downloadforums-23ca9cd81d51624b348164b9104a6e0287d2918e.tar
forums-23ca9cd81d51624b348164b9104a6e0287d2918e.tar.gz
forums-23ca9cd81d51624b348164b9104a6e0287d2918e.tar.bz2
forums-23ca9cd81d51624b348164b9104a6e0287d2918e.tar.xz
forums-23ca9cd81d51624b348164b9104a6e0287d2918e.zip
[ticket/12954] Correctly setup PATH_INFO on Travis CI.
PHPBB3-12954
-rwxr-xr-xtravis/setup-webserver.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/travis/setup-webserver.sh b/travis/setup-webserver.sh
index ea1929a5b0..ab045431cc 100755
--- a/travis/setup-webserver.sh
+++ b/travis/setup-webserver.sh
@@ -72,8 +72,11 @@ echo "
index index.php index.html;
location ~ \.php {
- fastcgi_pass unix:$APP_SOCK;
- include fastcgi_params;
+ include fastcgi_params;
+ fastcgi_split_path_info ^(.+\.php)(/.*)$;
+ fastcgi_param PATH_INFO \$fastcgi_path_info;
+ fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
+ fastcgi_pass unix:$APP_SOCK;
}
}
" | sudo tee $NGINX_CONF > /dev/null