From 79a8320fedd1e444b9acf11feaa3d160f5e4a5ff Mon Sep 17 00:00:00 2001 From: Andreas Neustifter Date: Thu, 28 Jun 2018 04:43:33 +0000 Subject: [PATCH] [nginx] Use try_files instead of if for /.well-known/. See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ --- mods/sample-nginx.config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index a3e4611960..0c5443828c 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -93,9 +93,7 @@ server { # by denying dot files and rewrite request to the front controller location ^~ /.well-known/ { allow all; - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?pagename=$1; - } + try_files $uri /index.php?pagename=$uri&$args; } include mime.types;