标签: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
标签:connector rect apach star nginx lis ack tom war
原文地址:https://www.cnblogs.com/jiwen/p/11415442.html