tomcat + nginx 问题
server {
listen 80;
autoindex on;
server_name v.yqcn.com yqrb.com.cn www.yqrb.com.cn;
access_log /usr/local/nginx/logs/access.log combined;
index index.html index.htm index.jsp login.html login.jsp index.php;
if ( $query_string ~* ".*[\;'\<\>].*" ){
return 404;
}
location = / {
root /film/frontend/yqvod-fe/dist/view;
index index.html;
}
location /sxyqwx2 {
root /usr/local/tomcat-frontend/webapps/sxyqwx2;
index login.jsp login.html index.html index.jsp;
}
location ~ .*\.html$ {
root /film/frontend/yqvod-fe/dist/view;
index index.html;
}
location / {
proxy_pass http://127.0.0.1:8080/;
add_header Access-Control-Allow-Origin *;
}
}
访问 www.yqrb.com.cn/sxyqwx2 出现 Nginx 404 Not Found
访问 www.yqrb.com.cn 正常
请教老师
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星