创建index.html页面。
    将index.html资源部署到d盘的demo目录中。
    通过itbz.com:8888/itbz/index.html访问虚拟主机,并访问index.html。

    1. <Host name="itbz.com" appBase="webapps2"
    2. unpackWARs="true" autoDeploy="true">
    3. <Context path="/itbz" docBase="D:\javaStudy\demo" />
    4. <!-- SingleSignOn valve, share authentication between web applications
    5. Documentation at: /docs/config/valve.html -->
    6. <!--
    7. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    8. -->
    9. <!-- Access log processes all example.
    10. Documentation at: /docs/config/valve.html
    11. Note: The pattern used is equivalent to using pattern="common" -->
    12. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
    13. prefix="localhost_access_log" suffix=".txt"
    14. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    15. </Host>