From: Andreas Neustifter Date: Thu, 28 Jun 2018 04:43:33 +0000 (+0000) Subject: [nginx] Use try_files instead of if for /.well-known/. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79a8320fedd1e444b9acf11feaa3d160f5e4a5ff;p=friendica.git [nginx] Use try_files instead of if for /.well-known/. See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ --- 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;