nginx conf文件有问题。
网站在这里:http://reg.canvyy.com/
当您尝试进入注册页面“ http://reg.canvyy.com/account/register”时,由于try_files配置错误,他显示的信息错误。
是的,我可以使用conf来“硬核”每个位置,但是我认为有另一种解决方案
自动取款机我有这个conf:
server {
listen 80;
root /.../...;
index index.php;
server_name reg.canvyy.com;
location / {
#try_files $uri $uri/ /index.php?q=$uri&$args;
autoindex on;
try_files $uri /index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}