From 324a778b95f3c91e98e3610500ac04ac2ea07905 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 7 May 2011 18:15:17 +0000 Subject: updated nginx config (gzip, logs) --- doc/nginx.conf | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/nginx.conf b/doc/nginx.conf index e2e4e3c..f89a75f 100644 --- a/doc/nginx.conf +++ b/doc/nginx.conf @@ -1,9 +1,20 @@ + server { listen 80; listen [::]:80; - server_name piccast.memeschemes.com; + server_name piccast.memeschemes.com piccastapp.com www.piccastapp.com; + + access_log /var/log/nginx/piccast_access.log; + error_log /var/log/nginx/piccast_error.log; - access_log /var/log/nginx/access.log; + gzip on; + gzip_http_version 1.1; + gzip_min_length 1000; + gzip_vary on; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain application/xml application/json; + gzip_disable "MSIE [1-6]\."; + gzip_disable "wget"; location / { # Fallthrough to django if file not found @@ -18,11 +29,11 @@ server { fastcgi_pass_header Authorization; fastcgi_intercept_errors off; if (!-f $request_filename) { - fastcgi_pass unix:/srv/http/piccast.memeschemes.com/django.sock; + fastcgi_pass unix:/srv/http/piccastapp.com/django.sock; break; } - root /srv/http/piccast.memeschemes.com/www; + root /srv/http/piccastapp.com/www; index index.html index.htm; } } -- cgit v1.2.3