Permalink
Browse files

really fix static files

  • Loading branch information...
1 parent e5715ee commit e1863fcf273a15fd676314e42dff2fa62b9f4e40 @nuance committed Dec 28, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 nginx.prod.conf
View
@@ -13,15 +13,17 @@ server {
# Allow file uploads
client_max_body_size 50M;
- location /static {
- root /srv/www/domains/mhjones.org/static/;
+ location /static/ {
+ alias /srv/www/domains/mhjones.org/static/;
if ($query_string) {
expires max;
}
}
+
location = /favicon.ico {
rewrite (.*) /static/favicon.ico;
}
+
location = /robots.txt {
rewrite (.*) /static/robots.txt;
}
@@ -47,8 +49,8 @@ server {
# Allow file uploads
client_max_body_size 50M;
- location /static {
- root /srv/www/domains/mhjones.org/static/;
+ location /static/ {
+ alias /srv/www/domains/mhjones.org/static/;
if ($query_string) {
expires max;
}

0 comments on commit e1863fc

Please sign in to comment.