----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
> Dwight Spencer wrote:
>
> I am running Apache 1.3.12 with JServ 1.1.1 on Unixware 2.1.2 with
> SCO Java 1.1.3u.
>
> I have been trying to run a servlet that simply generates a page with
> a background image. For example, the fragment of HTML generated
> by my servlet would be:
>
> ... <body background=myGif.gif> ...
>
> The image file resides in the same directory as the servlet that
> generates
> this HTML. However, the path requested by the resulting GET access to
> the
> Apache server is basically :
>
> GET /<zone of zervlet>/<name of servlet>/myGif.gif
>
> But I always get a 404 back (file not found). How can I get the
> correct path
> to finally be placed in the GET using JServ? Is it solvable via a
> JServ
> configuration change or via Java servlet re-programming or both?
You need to utilize mod_rewrite to rewrite the URL from the call to a
servlet in the zone (servletzone/MyGif.gif) to htdocs/images/MyGif.gif.
Utilizing wildcards, you can do it as a template so that ALL calls to
gifs get routed to a images folder. I can get you a copy of an example,
if you need it.
Ben Ricker
Web Administrator
US-Rx, Inc.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]