SSIs will include error page even if status code != 200

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I mounted a tomcat with mod_jk to /foo and I include a jsp in a static html page like this:

<!--#include virtual="/foo/bar.jsp" -->

Everything works quite fine, as long as the status code returned for "/foo/bar.jsp" is 200. If it is something else like 404 or 503 I would expect "[an error occured while pro....]" or whatever I configured the printed error msg to be. But instead the error page sent by tomcat is included. The logfile says the following:

[..]
unable to include "/foo/bar.jsp" in parsed file /index.html
[..]

If I try to include a nonexistent page which is served directly by the httpd like "/bar/foo.html", which returns a 404, everything works as expected.

Is there anything I can about that?

BR,
Christoph


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux