Server deployment Javaweb project + binding domain

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/God_V/article/details/80837773

The javaweb project packaged into war


Inside the webapps tomcat war copied to the server


Web.xml to your project's WEB-INF folder inside,在<welcome-file-list>节点之间加一个<welcome-file>节点,这就是你的默认首页,如<welcome-file>index.jsp<welcome-file>


In web.xml under tomcat conf directory should also be added.打开web.xml在里面找到<welcome-file-list>,然后加上<welcome-file>index.jsp<welcome-file>


In server.xml in the tomcat directory,找到<Connector>节点,把里面的port="8080",改成"80"。找到<host>节点,把它的name="localhost"
改成你的域名,如www.aa.com。


Then the host node inside, plus one child, says: <Context path="" docBase="" reloadable="true" />, do not control path, the path inside docBase direct path into your project


I remember 80 ports open

Guess you like

Origin blog.csdn.net/God_V/article/details/80837773