I saw something strange on one of my virtual hosts on tomcat 6. Not even sure whether it is virtual host/ TC specific.
There are only two files index.html and file2.html in this host. The content of file2 is irrelevant. index.html has two different links to file2.html: <a href="/file2.html">file2.html</a> <a href="/test/file2.html">/test/file2.html</a> Both succeed (!): 99.39.232.27 - - [01/Jul/2011:03:16:53 +0000] "GET /file2.html HTTP/1.1" 200 76 ... 99.39.232.27 - - [01/Jul/2011:03:16:57 +0000] "GET /test/file2.html HTTP/1.1" 200 76 while I expected one of them to fail. The fragment of server.xml for this virtual host: <Host name="www.testzzz.com" appBase="/home/ddc/test" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase = "/home/ddc/test/test" debug="0" reloadable="false" crossContext="false"> </Context> ... </Host> The two html files reside indeed at: /home/ddc/test/test/ Hence the question(s): URL/URI semantics allow both links to succeed? If not, TC6 is willing to go the extra mile? TC (6.0.32) is wacko? ---------------------------------------------------------------------------------------- Home page: rs6.risingnet.net/~ddcc Health Info Anytime for Everyone: www.HealthCheck4Me.info Exercise for the Mind: www.SuDoKuChallenge.us Marketing site: www.OntoOO.com >> Do NOT buy Dell, Mac, Ford, Chrysler << >> Boycott Chinese Products <<