From bbaa9fc6f140b9e457abec3f5469fff628673a13 Mon Sep 17 00:00:00 2001 From: jgen Date: Wed, 19 Feb 2014 18:45:28 -0500 Subject: [PATCH] Change the nginx config. --- tests/setup_test_env.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/setup_test_env.sh b/tests/setup_test_env.sh index deb3e917..3ec8cc03 100644 --- a/tests/setup_test_env.sh +++ b/tests/setup_test_env.sh @@ -28,22 +28,21 @@ echo " server { listen 80; server_name localhost 127.0.0.1 \"\"; + server_tokens off; root $1; index index.php; - location ~ /_?(images|thumbs)/ { - default_type image/jpeg; + location / { + index index.php; + # For the Nice URLs in Shimmie. + if (!-e $request_filename) { + rewrite ^(.*)\$ /index.php?q=\$1 last; + break; + } } - # For the Nice URLs in Shimmie. - #location / { - # if (!-e $request_filename) { - # rewrite ^(.*)$ /index.php?q=$1 last; - # break; - # } - #} - - location ~ \.php($|/) { + location ~ \.php\$ { + try_files $uri =404; fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; include fastcgi_params;