Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
really fix static files
Browse files Browse the repository at this point in the history
  • Loading branch information
nuance committed Dec 28, 2011
1 parent e5715ee commit e1863fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nginx.prod.conf
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ server {
# Allow file uploads # Allow file uploads
client_max_body_size 50M; client_max_body_size 50M;


location /static { location /static/ {
root /srv/www/domains/mhjones.org/static/; alias /srv/www/domains/mhjones.org/static/;
if ($query_string) { if ($query_string) {
expires max; expires max;
} }
} }

location = /favicon.ico { location = /favicon.ico {
rewrite (.*) /static/favicon.ico; rewrite (.*) /static/favicon.ico;
} }

location = /robots.txt { location = /robots.txt {
rewrite (.*) /static/robots.txt; rewrite (.*) /static/robots.txt;
} }
Expand All @@ -47,8 +49,8 @@ server {
# Allow file uploads # Allow file uploads
client_max_body_size 50M; client_max_body_size 50M;


location /static { location /static/ {
root /srv/www/domains/mhjones.org/static/; alias /srv/www/domains/mhjones.org/static/;
if ($query_string) { if ($query_string) {
expires max; expires max;
} }
Expand Down

0 comments on commit e1863fc

Please sign in to comment.