|Configure Tomcat to serve static files directly from filesystem [message #803820]
||Tue, 21 February 2012 16:33
| Jean-Pierre Bergamin
Registered: March 2011
Location: Zürich, CH
Hello Virgo users|
This is a follow-up to this message on the tomcat users mailing list.
I'm trying to configure Tomcat to serve files directly from the filesystem.
I basically want to use this configuration:
<Context docBase="D:/Downloads/dojo-release-1.7.1-src" path="/dojo/1.7.1" />
This should make e.g. the file D:/Downloads/dojo-release-1.7.1-src/dojo/dojo.js available as http://localhost:8080/dojo/1.7.1/dojo/dojo.js
I tried several approaches which all did not work out:
- Put the <Context ...> element in the <Host> entry for localhost in $VIRGO_SERVER$/config/tomcat-server.xml
- Put the <Context ...> element in its on file in $VIRGO_SERVER$/config/Catalina/localhost/context.xml
- Put the <Context ...> element in its on file in $VIRGO_SERVER$/config/Catalina/localhost/dojo.xml
Any idea how this can be achieved?
Powered by FUDForum
. Page generated in 0.11750 seconds