Created
September 9, 2016 06:52
-
-
Save cxfksword/3a865ae46c7dd8013bc2cbeef267eb1b to your computer and use it in GitHub Desktop.
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
location ~ .*\.(?!gif|jpg|jpeg|png|bmp|swf|flv|ico|js|css|ttf|woff|html|htm|php)[^.]+$ | |
return 404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment