Update src/nginxconfig/generators/conf/drupal.conf.js
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>pull/146/head
parent
ddd2cfb517
commit
9602a666a6
|
@ -18,7 +18,7 @@ export default global => {
|
||||||
const config = {};
|
const config = {};
|
||||||
|
|
||||||
config['# Drupal: deny private files'] = '';
|
config['# Drupal: deny private files'] = '';
|
||||||
config['location ~ ((^|/)\.|^.*\.yml$|^/sites/.*/private/|^/sites/[^/]+/.*settings.*\.php$)'] = {
|
config['location ~ ((^|/)\.|^.*\.yml$|^/sites/.*/private/|^/sites/[^/]+/[^/]*settings.*\.php$)'] = {
|
||||||
deny: 'all',
|
deny: 'all',
|
||||||
return: '404',
|
return: '404',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue