mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-28 23:55:11 +08:00
Remove WordPress comments from deny rule (#241)
Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
This commit is contained in:
@@ -51,7 +51,7 @@ export default global => {
|
||||
};
|
||||
|
||||
config['# WordPress: deny general stuff'] = '';
|
||||
config['location ~* ^/(?:xmlrpc\\.php|wp-links-opml\\.php|wp-config\\.php|wp-config-sample\\.php|wp-comments-post\\.php|readme\\.html|license\\.txt)$'] = {
|
||||
config['location ~* ^/(?:xmlrpc\\.php|wp-links-opml\\.php|wp-config\\.php|wp-config-sample\\.php|readme\\.html|license\\.txt)$'] = {
|
||||
deny: 'all',
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user