Remove WordPress comments from deny rule (#241)

Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
This commit is contained in:
Bernhard Kau 2021-03-26 16:06:51 +01:00 committed by GitHub
parent eb25fc5eee
commit 7706d13420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',
};