Skip to content

Instantly share code, notes, and snippets.

View mxcoder's full-sized avatar

ricardoe mxcoder

  • DUS
View GitHub Profile
@mxcoder
mxcoder / common.conf
Created January 23, 2014 22:31
Nginx common configuration
## Images and static content is treated different
location ~* \.(jpg|jpeg|gif|css|png|js|ico|xml|swf|eot|woff|ttf)$ {
access_log off;
expires 30d;
}
## Cache policy for webfonts
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
## Disable viewing hidden files