Nginx+Tomcat动静分离做动态处理时,页面访问不到

Nginx+Tomcat动静分离做动态处理时,页面访问不到

现象

Nginx+Tomcat动静分离做动态处理时,页面访问不到
在这里插入图片描述

解决方法

在nginx和Tomcat服务器上站点里做url的文件名必须一致

[root@nginx ~]# cd /usr/local/nginx/html/
[root@nginx html]# ls
50x.html  index.html  test
[root@tomcat1 webapps]# ls
docs  examples  host-manager  manager  ROOT  test
'test文件名要一致'

猜你喜欢

转载自blog.csdn.net/m0_47219942/article/details/108399295