diff options
| author | bnewbold <bnewbold@robocracy.org> | 2011-05-07 18:15:17 +0000 | 
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2011-05-07 18:15:17 +0000 | 
| commit | 324a778b95f3c91e98e3610500ac04ac2ea07905 (patch) | |
| tree | 4127e45e17f70efbf0036ca0b60a9dd82ea11f98 | |
| parent | cf569b08c0bd923778e476dcae1bbdf93d824502 (diff) | |
| download | piccast-324a778b95f3c91e98e3610500ac04ac2ea07905.tar.gz piccast-324a778b95f3c91e98e3610500ac04ac2ea07905.zip  | |
updated nginx config (gzip, logs)
| -rw-r--r-- | doc/nginx.conf | 19 | 
1 files changed, 15 insertions, 4 deletions
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;      }  }  | 
