Hi,
No, you have to do it yourself, and your filter is a good way to go, so
I'd suggest sticking with it.  Of course you have at least one other
good option, which is to just specify the image server name in the <img>
HTML tag ;)

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 14, 2004 12:40 PM
>To: Tomcat Users List
>Subject: image redirect
>
>Hello.
>I am used to using Apache Httpd in front of Tomcat to create Redirects
for
>images.  This way, I can re-route all calls to *.jpg to my image
server.
>But now I don't have Apache Httpd installed.  Can I do the same with
>Tomcat?
>
>This is the setup in Httpd:
>
><VirtualHost www.mysite.com>
>        ServerAdmin [EMAIL PROTECTED]
>        DocumentRoot /code/www/webapps/
>        ServerName production
>        RedirectMatch /images/(.*)$ http://images.mysite.com/images/$1
>        JkMount /*.do tomcat
>        JkMount /*.vm tomcat
>        JkMount /*.jsp tomcat
></VirtualHost>
>
>
>So, with the "RedirectMatch" I can route all of my image calls to
another
>server.  Is there somewhere in the conf/server.xml where I can setup
the
>same
>feature?  Right now I have a servlet filter setup in my web.xml file
for
>the
>application.  But I was wondering if it could be done "in" Tomcat
instead
>of
>in my application.  If not, I guess I'll keep using my filter.
>
>Thanks a lot.
>
>
>Charlie
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to