Skip to content

Commit

Permalink
Merge pull request #117 from x-team/disable-static-asset-404s
Browse files Browse the repository at this point in the history
Disable Nginx 404 handler for static assets
  • Loading branch information
jeremyfelt committed Aug 11, 2013
2 parents b87dcd8 + 6725a0d commit f5c7317
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions config/nginx-config/nginx-wp-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ gzip off;
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

# Handle all static assets by serving the file directly. Add directives
# to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 24h;
log_not_found off;
}

# this prevents hidden files (beginning with a period) from being served
location ~ /\. {
access_log off;
Expand Down

0 comments on commit f5c7317

Please sign in to comment.