From 88a4929d362b252cb85ee556f044b0b3f104e8ab Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Tue, 16 Jun 2020 16:56:28 +0100 Subject: [PATCH] Fix period escapes --- src/nginxconfig/generators/conf/drupal.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginxconfig/generators/conf/drupal.conf.js b/src/nginxconfig/generators/conf/drupal.conf.js index 8613393..fd20e6c 100644 --- a/src/nginxconfig/generators/conf/drupal.conf.js +++ b/src/nginxconfig/generators/conf/drupal.conf.js @@ -28,7 +28,7 @@ export default global => { const config = {}; config['# Drupal: deny private files'] = ''; - config['location ~ ((^|/)\.|^.*\.yml$|^/sites/.*/private/|^/sites/[^/]+/[^/]*settings.*\.php$)'] = { + config['location ~ ((^|/)\\.|^.*\\.yml$|^/sites/.*/private/|^/sites/[^/]+/[^/]*settings.*\\.php$)'] = { deny: 'all', return: '404', };