zoukankan      html  css  js  c++  java
  • tomcat

    <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入口
    


    
                                        
    
  • 相关阅读:
    POJ
    hdu 5652
    CodeForces
    #6285. 数列分块入门 9
    #6284. 数列分块入门 8
    #6283. 数列分块入门 7
    #6282. 数列分块入门 6
    #6280. 数列分块入门 4 #6281. 数列分块入门 5
    #6278. 数列分块入门 2和#6278. 数列分块入门 3
    spark-sklearn TypeError: 'JavaPackage' object is not callable
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351497.html
Copyright © 2011-2022 走看看