码迷,mamicode.com
首页 > Web开发 > 详细

tomcat 部署web

时间:2019-08-26 22:38:51      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:connector   rect   apach   star   nginx   lis   ack   tom   war   

1 Nginx  

  /usr/local/nginx

 vim conf/nginx.conf

 

 server {
        listen 80;
        server_name solution.insenth.com;
        location / {
           proxy_pass http://120.24.43.2:8484;
        }
    }

    server {
        listen 80;
        server_name ar.insenth.com;
        location / {
           proxy_pass http://120.24.43.2:8282;
        }
    }

重启 nginx    进入 /usr/local/nginx/sbin 文件夹,执行 ./nginx  -s reload

 

2  Tomcat      /conf/server.xml

 <Connector port="8282" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8"/>

  

<Connector port="8282" protocol="AJP/1.3" address="127.0.0.1" redirectPort="8443" />
<Engine name="Catalina" defaultHost="ar.insenth.com">

 

 <Host name="ar.insenth.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

      
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" />
        <Context path="" docBase="solution" debug="0"/>
      </Host>

  重启   ./bin     shutdown.bat  startup.bat 

 

tomcat 部署web

标签:connector   rect   apach   star   nginx   lis   ack   tom   war   

原文地址:https://www.cnblogs.com/jiwen/p/11415442.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!