tomcat直接輸入ip地址訪問項目

1.將tomcat端口改爲80
<span style="white-space:pre">	</span><Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />


2.將tomcat\webapps\ROOT文件夾下的index.html或index.jsp(不同版本的tomcat不一樣)修改爲

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0;url=項目名稱或首頁url">
</head>
<body>
</body>
</html>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章