I'm having a problem with server side includes within a tomcat context.
Specifically, I have an shtml file that needs to check the LAST_MODIFIED environment variable via the SSL echo command. It's in a tomcat context that is being served through apache/mod_jk. The command that I'm using is
This code works with SSI in sections of the server that are served by apache alone, and other variables behave as expected in the tomcat context.
For software, I'm running:
Apache httpd 2.0.54
Jakarta Tomcat 4.1.31
Java j2sdk 1.4.2_08
mod_jk from jakarta-tomcat-connectors-1.2.10
Has anyone else had a similar problem? If so, how did you resolve / work around the issue?
Let me know if any further information is required, and I'll post / forward it on.
Well, what is the problem? You indicate that it works in Apache-only pages; does it not work in Apache/Tomcat pages? If not, what happens? Does Tomcat have SSI enabled (I think that by default it's turned off)?
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jun 26, 2002
Originally posted by Ulf Dittmer: Well, what is the problem? You indicate that it works in Apache-only pages; does it not work in Apache/Tomcat pages? If not, what happens? Does Tomcat have SSI enabled (I think that by default it's turned off)?
Tomcat does have SSI enabled, but shouldn't matter, I think. SSI is being handled by Apache, and my issue is present regardless of the enabled-ness os SSI in Tomcat.
I'll exapnd a little, for clarity. When I use SSI in a Tomcat context, the SSI "echo var" command doesn't get the LAST_MODIFIED variable correctly. Specifically, if I use:
regardless of the date that the file was modified. (This appears to be the UNIX epoch?) In a non-context area, the last modified date is returned correctly. All other variables that are queried using "echo var" return sane and expected values.