Created
March 25, 2012 15:39
-
-
Save wxianfeng/2197500 to your computer and use it in GitHub Desktop.
Rails 3 assets,Nginx配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server 区内添加: | |
location ~ ^/assets/ { | |
root /web/projects/sqopen.com/public; | |
expires 1y; | |
add_header Cache-Control public; | |
add_header ETag ""; | |
gzip_static on; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment