php - How to configure 8080 for linux nginx+tomcat integration?
高洛峰
高洛峰 2017-05-16 13:02:36
0
1
415
location ~ .*.jsp$ { # Matches files ending with jsp. Tomcat’s web page files end with jsp.
                index index.jsp;
                proxy_pass http://127.0.0.1:8080; #Mainly set up a proxy here
        }

Is 127.0.0.1:8080 here just like this or the actual domain name? For example, http://www.xxx.com:8080?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
巴扎黑

Access address: http://www.xxx.com Configuration is as follows:

      server {
                listen       80;
                server_name  www.xxx.com;

                access_log  logs/xxx.access.log  main;

                location / {
                    root   html;
                    index  index.html index.htm;
                }
                    
                location ~ .*.jsp$ {     #匹配以jsp结尾的,tomcat的网页文件是以jsp结尾         
                    index index.jsp;
                    proxy_pass http://127.0.0.1:8080; #主要在这里,设置一个代理
                }
        }
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template