[nginx] Use try_files instead of if for /.well-known/.

See https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
pull/5344/head
Andreas Neustifter 2018-06-28 04:43:33 +00:00
rodzic f44cb1ccce
commit 79a8320fed
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

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