Last active
December 21, 2016 09:53
-
-
Save quangbahoa/aef724fbfc43a097aa46a6ca7c5e2bde to your computer and use it in GitHub Desktop.
This file contains 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 / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~* .php$ { | |
deny all; | |
} | |
location ~ ^(index\.php)?$ { | |
allow all; | |
} | |
location ~* /wp-includes/.*.php$ { | |
deny all; | |
access_log off; | |
log_not_found off; | |
} | |
location ~* /wp-content/.*.php$ { | |
deny all; | |
access_log off; | |
log_not_found off; | |
} | |
location ~* /(?:uploads|files)/.*.php$ { | |
deny all; | |
access_log off; | |
log_not_found off; | |
} | |
location /xmlrpc.php { | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment