tomcat 部署web
Posted jiwen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tomcat 部署web相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章