V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gaobing
V2EX  ›  问与答

Tomcat 打开虚拟目录后,会访问到安装目录,这个怎么修复?

  •  
  •   gaobing · May 14, 2019 · 884 views
    This topic created in 2546 days ago, the information mentioned may be changed or developed.
    tomcat 打开虚拟目录后,访问 /conf/server.xml 竟然能访问到安装目录的配置文件,这个怎么修复呢?
    暂时的解决方案是再做一个虚拟路径匹配,将 /conf 指向 404 目录。在必须使用虚拟目录的前提下,有更好的解决方法吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:43 · PVG 16:43 · LAX 01:43 · JFK 04:43
    ♥ Do have faith in what you're doing.