1
0
Fork 0

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:
- <server.tld>/.well-known/host-meta
- <server.tld>/.well-known/x-social-ray
- <server.tld>/.well-known/nodeinfo
- <server.tld>/.well-known/webfinger?resource=<resource>
This commit is contained in:
Wouter Broers 2018-12-01 19:04:34 +01:00
parent ea4e772b1e
commit 2b38b7b7de

View file

@ -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;