该项目是一个单页面项目。设置了白名单后,访问“域名/path”是生效的,但是变成“域名/path/#/login”就不生效了,这个要怎么解决。
server
{
listen 80;
server_name ...;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/canteen;
include enable-php-72.conf;
include /www/server/panel/vhost/rewrite/10.129.21.105.conf;
deny all;
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
location ~ \.well-known{
allow all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
access_log /www/wwwlogs/10.129.21.105.log;
error_log /www/wwwlogs/10.129.21.105.error.log;
}