mirror of
https://github.com/friendica/friendica
synced 2024-12-06 16:42:03 +01:00
[nginx] Use try_file instead of if.
See https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/?utm_source=tool.lu#check-if-file-exists.
This commit is contained in:
parent
79a8320fed
commit
6a85b34504
1 changed files with 1 additions and 3 deletions
|
@ -84,9 +84,7 @@ server {
|
|||
|
||||
# rewrite to front controller as default rule
|
||||
location / {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ /index.php?pagename=$1;
|
||||
}
|
||||
try_file $uri /index.php?pagename=$uri&$args;
|
||||
}
|
||||
|
||||
# make sure webfinger and other well known services aren't blocked
|
||||
|
|
Loading…
Reference in a new issue