<!-- This Host is the first "Virtual Host": www.example.com -->
<Host name="hellobyehost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" >
<Context docBase="" path="/" debug="0" reloadable="true" workDir="E:\jsp"/>
</Host> 这样写为什么不行?
<Host name="hellobyehost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" >
<Context docBase="" path="/" debug="0" reloadable="true" workDir="E:\jsp"/>
</Host> 这样写为什么不行?
<Host name="www.11.com" appBase="/home/myweb" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase="/home/myweb" debug="0" crossContext="true" reloadable="true"></Context> </Host>
包肯定发在应用目录下了。
这样配置后所有的JSP页面引用了包的,全部出错,找不到包了,所有的servlet也都找不到了,但是用IP地方访问服务器,就正常!望解决!