niginx重定向到tomcat主页不成功,输入IP显示nginx主页不是tomcat主页
upstreamtomcat_server{server阿里云公网IP:端口weight=1;}server{listen5199;server_name阿里云公网IP:...
upstream tomcat_server{
server 阿里云公网IP:端口 weight=1;
}
server {
listen 5199;
server_name 阿里云公网IP:
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://tomcat_server;
} 展开
server 阿里云公网IP:端口 weight=1;
}
server {
listen 5199;
server_name 阿里云公网IP:
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://tomcat_server;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询