mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
[nginx] Use try_files instead of if for /.well-known/.
See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
This commit is contained in:
parent
f44cb1ccce
commit
79a8320fed
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue