включаю debug как понять почему строку location не использует
location: ~ "^(.*)/\<(.*)$" {
return 404;
}
2019/04/23 11:43:55 [debug] 2737#0: *23 test location: "/"
2019/04/23 11:43:55 [debug] 2737#0: *23 test location: "images/"
2019/04/23 11:43:55 [debug] 2737#0: *23 test location: ~ "^(.*)alert(.*)$"
2019/04/23 11:43:55 [debug] 2737#0: *23 test location: ~ "^(.*)document(.*)$"
2019/04/23 11:43:55 [debug] 2737#0: *23 test location: ~ "\.php"
2019/04/23 11:43:55 [debug] 2737#0: *23 using configuration "\.php"