Browse Source

Deny wp-config.txt

old-stable
Mitesh Shah 12 years ago
parent
commit
e25bdb7d2a
  1. 7
      etc/nginx/common/wpcommon.conf

7
etc/nginx/common/wpcommon.conf

@ -8,6 +8,13 @@ location = /wp-login.php {
fastcgi_pass php;
}
# Disable wp-config.txt
location = /wp-config.txt {
deny all;
access_log off;
log_not_found off;
}
# Disallow PHP In Upload Folder
location /wp-content/uploads/ {
location ~ \.php$ {

Loading…
Cancel
Save