www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Theilen <dthei...@kcp.com>
Subject mod_jserv/4737: JservSSI #include virtual, relative path not set correctly
Date Mon, 19 Jul 1999 15:48:48 GMT

>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
>Originator:     dtheilen@kcp.com
>Release:        1.3.6 (unix)
SunOS rda2 5.6 Generic_105181-11 sun4m sparc SUNW, SPARCstation-20
jsdk 2.0
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:

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

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

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


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. 
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:

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

No suggestions
[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