From b2d6f36d26545f958f3cae8e386d617eab27e4d0 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 18 May 2010 05:45:42 +0200 Subject: Added nginx.conf --- conf/nginx.conf | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 conf/nginx.conf diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..bbab6f0 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,46 @@ +user www-data; +worker_processes 5; + +error_log /var/log/nginx/error.log; +pid /var/run/nginx.pid; + +events { + worker_connections 1024; + # multi_accept on; +} + +http { + include /etc/nginx/mime.types; + + access_log /var/log/nginx/access.log; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + tcp_nodelay on; + + gzip on; + gzip_disable "MSIE [1-6]\.(?!.*SV1)"; + + include /etc/nginx/conf.d/*.conf; + + server { + listen 80; + + location ^~* ^/(avatars|images)/ { + root /home/ubuntu/dumpfm; + expires 30d; + } + + location ^~* ^/static/ { + root /home/ubuntu/dumpfm; + expires 30m; + } + + location / { + proxy_pass http://127.0.0.1:8080; + } + } +} -- cgit v1.2.3-70-g09d2