Changes between Version 11 and Version 12 of DjangoAndNginx
- Timestamp:
- Apr 17, 2012, 10:09:03 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DjangoAndNginx
v11 v12 122 122 location /site_media { 123 123 root /media/; # Notice this is the /media folder that we create above 124 125 location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) { 126 access_log off; 127 expires 30d; 128 } 124 129 } 125 location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) { 126 access_log off; 127 expires 30d; 128 } 130 129 131 location / { 130 132 # host and port to fastcgi server … … 149 151 /etc/init.d/nginx start 150 152 }}} 153 154 Anonymous says there is a lot cleaner way to install Nginx+Django on a Debian-based system. See [http://serverfault.com/a/370573/52873 this post on stackoverflow for details]