首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

tomcat 直连通过IP访问web项目

2012-08-26 
tomcat 直接通过IP访问web项目1:在开发时访问web项目是这样的http://localhost:8080/项目名称也可以直接通

tomcat 直接通过IP访问web项目

1:在开发时访问web项目是这样的http://localhost:8080/项目名称

也可以直接通过IP访问web项目:http://localhost/项目名称

方法为

? 1:修改tomcat端口为80

??

修改server.xml

?改为

?<Connector port="80" protocol="HTTP/1.1"

?

2:

在server.xml??里,<host>...</host>的标签之间添加<Context path="" docBase="项目名称" debug="0"/>

?

重新启动tomcat,输入http://localhost/项目名称就可以了

?

热点排行
Bad Request.