You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Björkman <pe...@josh.se> on 2006/11/09 15:34:09 UTC

Path mapping...

Hi! I have a web-app residing in "/", the docBase is relative to appBase. I have an issue where I want to serve static files located outside the web-app. For example:

/mydir/index.jsp
comes from the relative docBase as usual.
/images/myimage.gif
comes from /var/static/images/myimage.gif, an absolut directory in the servers filesystem.

Is this possible without creating a separate web-app with another docBase? Could you map "/images" to that file system path  "/var/static/images/"? I've been looking through the documentation (5.0) for this, but cannot find it anywhere...

Regards
Peter
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Path mapping...

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org