[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
|
@ -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 New Issue
Block a user