Explicitly listen on localhost.

This commit is contained in:
jgen 2014-02-18 00:50:57 -05:00
parent 20ce8451f4
commit ad3c865716

View file

@ -17,20 +17,18 @@ sudo apt-get install -y nginx realpath php5-fpm php5-mysql --fix-missing
sudo service nginx stop sudo service nginx stop
sudo /etc/init.d/php5-fpm stop sudo /etc/init.d/php5-fpm stop
SHIMMIE_ROOT=$(realpath "$0")
# shimmie needs to be able to create directories for images, etc. # shimmie needs to be able to create directories for images, etc.
# (permissions of 777 are bad, but it definitely works) # (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_CONF="/etc/nginx/sites-enabled/default"
# nginx configuration # nginx configuration
echo " echo "
server { server {
listen 80 default; listen 80;
server_name localhost 127.0.0.1 \"\";
root $SHIMMIE_ROOT/; root $0/;
index index.php; index index.php;
location ~ /_?(images|thumbs)/ { location ~ /_?(images|thumbs)/ {