Topic: tomcat下怎么配虚拟目录,直接用http://localhost:8080访问?

  Print this page

1.tomcat下怎么配虚拟目录,直接用http://localhost:8080访问? Copy to clipboard
Posted by: czaiq
Posted on: 2005-12-06 15:10

现在虚拟目录也配置可以运行了,如c:\test
但在地址栏中要输入 http://localhost:8080/test来访问?请问怎么设置成用http://localhost:8080就可以访问c:\test下的index.jsp文件

2.Re:tomcat下怎么配虚拟目录,直接用http://localhost:8080访问? [Re: czaiq] Copy to clipboard
Posted by: bigfoot007
Posted on: 2005-12-06 17:19

在Tomcat的server.xml中的<host></host>中间添加
<Context path="" docBase="c:\test" debug="0"/>

3.Re:tomcat下怎么配虚拟目录,直接用http://localhost:8080访问? [Re: czaiq] Copy to clipboard
Posted by: czaiq
Posted on: 2005-12-07 09:06

谢谢老大,问题解决了


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923