diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..66ee6c3 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,24 @@ +events {} + +http { + server { + listen 80 default_server; + server_name _; + root /usr/share/nginx/html; + include /etc/nginx/mime.types; + index index.html; + gzip on; + gzip_disable "msie6"; + + location = /favicon.ico { access_log off; log_not_found off; } + + # Django + location /static/ { + alias /var/www/static/; + } + + location /media/ { + alias /var/www/media/; + } + } +}