You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by David Theilen <dt...@kcp.com> on 1999/07/19 17:48:48 UTC

mod_jserv/4737: JservSSI #include virtual, relative path not set correctly

>Number:         4737
>Category:       mod_jserv
>Synopsis:       JservSSI #include virtual, relative path not set correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jul 19 08:50:00 PDT 1999
>Last-Modified:
>Originator:     dtheilen@kcp.com
>Organization:
apache
>Release:        1.3.6 (unix)
>Environment:
SunOS rda2 5.6 Generic_105181-11 sun4m sparc SUNW, SPARCstation-20
ApacheJSSI-1.1.2
ApacheJServ-1.0
jsdk 2.0
>Description:
Maybe I don't understand how #include virtual should work.
I have a simple file in <DocumentRoot>/example_html/example.jsp  
The first 2 example includes seem to work fine:

<html>
<head><title>Example ssi in java server pages</title></head>
<body>

<!--#include file="header.inc" -->

<!--#include virtual="/example_html/header.inc" -->

</body>
</html>

both using the header.inc in the example_html directory where in httpd.conf 
DocumentRoot "/usr2/local/apache/htdocs"
header.inc is in the <DocumentRoot>/example_html directory.

however, using the following format fails

<!--#include virtual="header.inc" --> 

The '#include virtual' is looking for the file in the DocumentRoot directory
instead of the "current directory" (<DocumentRoot>/example_html) where 
example.jsp is located. 
>How-To-Repeat:
Create a directory below the DocumentRoot directory
In the subdirectory,
Create a file header.inc that has the following line

This is the header <br>

Create a java server page example.jsp file with the following contents:

<html>
<head><title>Example ssi in java server pages</title></head>
<body>
<!--#include virtual="header.inc" -->
<p>Test page</p>
</body>
</html>


>Fix:
No suggestions
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@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!     ]