From 2b38b7b7de8c2da9f6cbb5a11ead13569570258d Mon Sep 17 00:00:00 2001 From: Wouter Broers Date: Sat, 1 Dec 2018 19:04:34 +0100 Subject: [PATCH] Updated .well-known location within Nginx Sample Config: Replaced try_files with a rewrite rule to prevent Nginx from spitting out 404 errors on addresses like: - /.well-known/host-meta - /.well-known/x-social-ray - /.well-known/nodeinfo - /.well-known/webfinger?resource= --- mods/sample-nginx.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index d6afe71746..71d3785516 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -91,7 +91,7 @@ server { # by denying dot files and rewrite request to the front controller location ^~ /.well-known/ { allow all; - try_files $uri /index.php?pagename=$uri&$args; + rewrite ^ /index.php?pagename=$uri; } include mime.types;