1、将页面放到tomcat的root目录下,即ROOT/weihu.html

2、修改nginx配置文件

server{
            listen 80;   # nginx监听的端口
            root /opt/apache-tomcat-8.0.50/webapps/ROOT;   # tomcat的root路径
            server_name 47.95.*.*;   # 当前主机的域名或ip
            location / {
                    rewrite ^(.*)$ /weihu.html break;   # 要跳转到的页面路径
            }
}

 

相关文章:

  • 2022-03-12
  • 2021-09-10
  • 2022-12-23
  • 2021-09-27
  • 2021-06-24
  • 2021-08-01
  • 2022-03-06
  • 2021-12-31
猜你喜欢
  • 2022-01-05
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案