www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renaud Sibille <renaud_sibi...@hotmail.com>
Subject mod_include/6276: SSI #Include directive doesn't work with virtual="/servlet/ServletName"
Date Tue, 04 Jul 2000 11:25:19 GMT

>Number:         6276
>Category:       mod_include
>Synopsis:       SSI #Include directive doesn't work with virtual="/servlet/ServletName"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jul 04 04:30:01 PDT 2000
>Originator:     renaud_sibille@hotmail.com
>Release:        1.3.12
Window 2000
Apache 1.3.12
Tomcat 3.1
Include directives like <!--# include virtual="/servlet/..." --> does not work. It seems
the request is not passed through to the jserv engine of Tomcat. No error message.
Everything is working separately :
- include directives are working with "normal" (ie non servlet) URL 
- servlet is working fine ; For example the URL
  gives the expected result

The directory configuration (httpd.conf) is  (no .htaccess file in the dir.):
DocumentRoot "d:/wwwroot/"
<Directory "d:/wwwroot">
    Options Indexes FollowSymLinks MultiViews Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
 and the tomcat.conf contains :
ApJServMount /servlet /root
<Location /servlet/>
  order allow,deny
  allow from all
<Location /WEB-INF/>
  order deny,allow
  deny from all
You can use three files :
- test.shtml
  <!--#include virtual="/test_inc1.shtml"-->
  <!--#include virtual="/servlet/HelloWorldExample"-->
  <!--#include virtual="/test_inc2.shtml"-->
- test_inc1.shtml
  First label<br>
- test_inc1.shtml
  Second label<br>
- plus the HelloWorldExample servlet provided with Tomcat.

The output is :
  First label
  Second label

nothing about the servlet ?!
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message