Enabling SSI
Mark Short
mark at transparentsolutions.com
Wed Apr 17 17:35:08 CDT 2002
try
<!--#include virtual="/cgi-bin/news/news.txt" -->
-----Original Message-----
From: owner-kclug at marauder.illiana.net
[mailto:owner-kclug at marauder.illiana.net]On Behalf Of Seth Dimbert
Sent: Wednesday, April 17, 2002 11:31 AM
To: kclug at kclug.org
Subject: Enabling SSI
Here's an excerpt from /etc/httpd/conf/httpd.conf:
<--------------------------->
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks Includes
<--------------------------->
Here's another:
<--------------------------->
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
<--------------------------->
I've added "Includes" to the options statement and uncommented the "AddType" and "AddHandler" lines
(actually, there came uncommented).
Nontheless, my .shtml page isn't showing the results of the command,
<!--#include virtual="/var/www/cgi-bin/news/news.txt" -->
Can anyone tell me what I'm doing wrong?
-SD
More information about the Kclug
mailing list