In order to allow my developers to quickly access any temporarily produced html files created/stored outside of webapps (such as those created by the jacoco test coverage tool) I want to allow read only access to the root directory of the development server (firewalled and all access outside of the LAN is disabled) via tomcat. I can get it to do any directory *EXCEPT* / as the docBase but a docBase of "/" returns an empty dir listing (which is obviously wrong):
In config/web.xml: <servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> In server.xml (this works): <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <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="/fakeRoot" path="/files"> </Context> But this does not work: <Context docBase="/" path="/files"> -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org