mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
Remove WordPress comments from deny rule (#241)
Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
This commit is contained in:
parent
eb25fc5eee
commit
7706d13420
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue