<pre name="code" class="sql">http://192.168.33.220/myhome/
怎么隐藏/myhome目录呢?
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b %T %{X-Forwarded-For}i" />
<Context docBase="zjzc-web-flow" path="/" reloadable="false"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context docBase="myhome" path="/" reloadable="false"/>
http://192.168.33.220/ 和 http://192.168.33.220/myhome/ 都可以这么访问
修改上下文根呢?
<Context docBase="myhome" path="/zyj" reloadable="false"/>
http://192.168.33.220/zyj/和http://192.168.33.220/myhome/ 都可以访问
http://192.168.33.220/myhome/
怎么隐藏/myhome目录呢?
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b %T %{X-Forwarded-For}i" />
<Context docBase="zjzc-web-flow" path="/" reloadable="false"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context docBase="myhome" path="/" reloadable="false"/>
http://192.168.33.220/ 和 http://192.168.33.220/myhome/ 都可以这么访问
修改上下文根呢?
<Context docBase="myhome" path="/zyj" reloadable="false"/>
http://192.168.33.220/zyj/和http://192.168.33.220/myhome/ 都可以访问
docBase指定要部署的Web应用的源路径
path指定访问Web应用的URL入口