From ad3c865716ceff654030430aeabf89fb92485df8 Mon Sep 17 00:00:00 2001 From: jgen Date: Tue, 18 Feb 2014 00:50:57 -0500 Subject: [PATCH] Explicitly listen on localhost. --- tests/setup_test_env.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/setup_test_env.sh b/tests/setup_test_env.sh index 12aee6a5..9e52ed09 100644 --- a/tests/setup_test_env.sh +++ b/tests/setup_test_env.sh @@ -17,21 +17,19 @@ sudo apt-get install -y nginx realpath php5-fpm php5-mysql --fix-missing sudo service nginx stop sudo /etc/init.d/php5-fpm stop -SHIMMIE_ROOT=$(realpath "$0") - # shimmie needs to be able to create directories for images, etc. # (permissions of 777 are bad, but it definitely works) -sudo chmod -R 0777 $SHIMMIE_ROOT +sudo chmod -R 0777 $0 NGINX_CONF="/etc/nginx/sites-enabled/default" # nginx configuration echo " server { - listen 80 default; - - root $SHIMMIE_ROOT/; - index index.php; + listen 80; + server_name localhost 127.0.0.1 \"\"; + root $0/; + index index.php; location ~ /_?(images|thumbs)/ { default_type image/jpeg;