php - Comment configurer 8080 pour l'intégration Linux Nginx+Tomcat?
高洛峰
高洛峰 2017-05-16 13:02:36
0
1
417
location ~ .*.jsp$ { # Correspond aux fichiers se terminant par jsp. Les fichiers de la page Web de Tomcat se terminent par jsp.
                index index.jsp;
                proxy_pass http://127.0.0.1:8080; #Configurez principalement un proxy ici
        

127.0.0.1:8080 est-il ici comme ceci ou le nom de domaine réel ? Par exemple, http://www.xxx.com:8080 ?

高洛峰
高洛峰

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

répondre à tous(1)
巴扎黑

Adresse d'accès : http://www.xxx.com La configuration est la suivante :

      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; #主要在这里,设置一个代理
                }
        }
}
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal