httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hall <christopher.k.h...@gmail.com>
Subject [users@httpd] strange problem when SSI including jsp
Date Wed, 06 Jul 2005 13:22:01 GMT
I've recently setup apache 2.0.49 (SuSE Enterprise Linux 9 rpm
package) and Tomcat 5.5.9 (downloaded from jakarta site).  Everything
appears to be working great.

First some information:

moving apps from Websphere/IBM HTTP server to Tomcat/Apache

web document root: /srv/www/websiteX/htdocs
websiteX tomcat root: /usr/local/tomcat/webapps/websiteX

both directories have an "include" directory.  this is the way it was
setup before i got here.  static content (html, shtml, images, etc) is
the the web root, jsp and servlets in the tomcat root.

i've setup apache/tomcat so that static content gets handled by apache
and jsp/servlets get handed off to tomcat.

now the problem:

----- index.shtml snippet -----
... html ...
<!-- include a file from the websiteX/include dir -->
<!--#include virtual="include/somefile.htm" -->
... more html and more includes ...

<!-- this one works as well -->
<!-- include a jsp page from the tomcat websiteX/include dir -->
<!--#include virtual="include/foobar.jsp" -->

<!-- now every include breaks after the jsp -->
<!--#include virtual="include/someotherfile.htm" -->
.. more html and more includes ...
----- snippet -----

the jsp gets handled by Tomcat just fine and gets included in the
resulting HTML, however, every single include after that breaks.  the
Apache error log indicates that every SSI include after the jsp
include is looking in:

/srv/www/websiteX/htdocs/include/include

from the apache error log:

[Wed Jul 06 08:17:28 2005] [error] [client x.x.x.x] File does not
exist: /srv/www/websiteX/htdocs/include/include
[Wed Jul 06 08:17:28 2005] [error] [client x.x.x.x] unable to include
"include/bottomnav.htm" in parsed file
/srv/www/websiteX/htdocs/index.shtml

note the extra "include" directory.  of course, this directory does not exist.

If I comment out the jsp SSI include, all the SSI includes after it work.

Also, if i prepend all the include paths with a "/", everything works
great.  the issue is that this was working under websphere/ibm http
server without the "/"'s.

i've googled all over the place for answers and can't find any
discussions about this problem.  anyone have any ideas?  thanks.

Chris

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message