Skip to content

Commit

Permalink
make location rule more rigorous
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed Sep 25, 2016
1 parent f9a6b60 commit 009a5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter6/section2/nginx_gunicorn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ http {
root /home/ubuntu/web_develop/static;
}

location ~* .(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
location ~* \.(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
expires 30d;
}

Expand Down
2 changes: 1 addition & 1 deletion chapter6/section2/nginx_uwsgi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ http {
proxy_redirect off;
}

location ~* .(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
location ~* \.(woff|eot|ttf|svg|mp4|webm|jpg|jpeg|png|gif|ico|css|js)$ {
expires 30d;
}
}
Expand Down

0 comments on commit 009a5f1

Please sign in to comment.