-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pete,

On 2/18/2009 11:35 PM, Pete Helgren wrote:
> What do the URL's look like?  Here is an example.  If I right click and
> get the properties on the "missing" image, I see this (well I'd add a
> more "real" looking URL but the this mailing list has rejected my last 9
> attempts as spam...):
> 
>  MyDomain/images/bg_hdr_logo.gif  and the image does NOT display.

This is a risky URL because it is not rooted in the webapp's context
path. If your page moves (or the target GIF moves) you're image won't work.

> The actual source from that page <view source> shows this:
> 
> <td valign="top" class="body12"><img src="images/bg_hdr_logo.gif"
> width="254" height="132" border="0"></td>
> 
> So, looking at the page that DOES display correctly I see this for the
> image properties:
> 
> localhost:8080/images/bg_hdr_logo.gif

Note the leading /. I'll bet the URL of the page is something other than
"/somepage.html". It's probably more like "/subdir/somepage.html". Your
relative URI will not work in this case.

> Apache
> has no other role except to "pass through" the traffic to Tomcat.

[snip]

> <Location /MyApp>
>  SetHandler jakarta-servlet
> </Location>

This will certainly help. If you want Tomcat to serve your static
content, you'd better map that static content to Tomcat instead of
allowing Apache httpd to attempt to serve it. I suspect you don't have
an "Alias" for "/MyApp".

Andre's suggestion to use <Location> is only because <Location>
essentially provides a URI prefix which you weren't doing. Your JkMount
just said "map the exact URI /MyApp to Tomcat". Any other URIs (like
/MyApp/foo) won't go to Tomcat.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmddX0ACgkQ9CaO5/Lv0PCFHACePXwv1b7lse1LzRc8JmPTOT4S
YjoAmwfgHewdb7mHMJBh3HA2CYuoasw6
=Optb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to