创建index.html页面。
将index.html资源部署到d盘的demo目录中。
通过itbz.com:8888/itbz/index.html访问虚拟主机,并访问index.html。
<Host name="itbz.com" appBase="webapps2"unpackWARs="true" autoDeploy="true"><Context path="/itbz" docBase="D:\javaStudy\demo" /><!-- SingleSignOn valve, share authentication between web applicationsDocumentation at: /docs/config/valve.html --><!--<Valve className="org.apache.catalina.authenticator.SingleSignOn" />--><!-- Access log processes all example.Documentation at: /docs/config/valve.htmlNote: The pattern used is equivalent to using pattern="common" --><Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"prefix="localhost_access_log" suffix=".txt"pattern="%h %l %u %t "%r" %s %b" /></Host>
