apache+tomcat首页设置问题!

风清扬-3 2003-02-12 11:18:01
我用apache+tomcat.假如我的IP是211.45.1.1,如何使用户键入我IP时显示我的网站首页
...全文
53 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
fanciex 2003-03-03
  • 打赏
  • 举报
回复
1.可能你的端口号为8080,必须HTTP://211.45.1.1:8080\

2.用 zxhong(红透半边天)的方法,你的boot目录下要存在index.htm,index.html,count.jsp文件。
christinadingkou 2003-02-12
  • 打赏
  • 举报
回复
设置tomcat阿
zxhong 2003-02-12
  • 打赏
  • 举报
回复
web.xml:
<welcome-file-list>
<welcome-file>count.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
server.xml:
<Context path="" docBase="d:\tomcat\webapps\count" debug="0"
reloadable="true">
风清扬-3 2003-02-12
  • 打赏
  • 举报
回复
怎么没人up
zxhong 2003-02-12
  • 打赏
  • 举报
回复
是啊,我试过了,可以的!

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧