httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max.Dittr...@t-online.de (Max Dittrich)
Subject Re: [users@httpd] Urgent help required
Date Wed, 25 Feb 2004 23:26:38 GMT
Somraj Bhattacharyya wrote:
> Dear all
> 
> I am quite new with Appache and facing a problem to run some of mine .shtm
> files ( server side includes) in Apache 2.0. I am running the Apache on Red
> Hat Linux 9.
> 
> In my test.shtm file I am including one ssi file with the syntax below,
> 
> <!--#include file="/js_nav_functions.ssi" -->

A cite from "http://httpd.apache.org/docs-2.0/mod/mod_include.html"
says about the value of "file":

| The value is a path relative to the directory containing the current
| document being parsed. It cannot contain ../, nor can it be an
| absolute path. Therefore, you cannot include files that are outside of
| the document root, or above the current document in the directory
| structure. The virtual attribute should always be used in preference
| to this one.

Use 'virtual' instead and remove the leading slash.

.max

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