| keanlee@gmail.com 2005-03-03, 2:51 am |
| hi,
i just install apache 2.0.52. i try to configure apache to recognise
ssi by taking off the # sign for at the bottom of the httpd file.
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
then i add in the Options +Includes into the htdocs directory
<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
Options +Includes
when i try out the shtml file, i can't see the result of the perl
script. when i view source, this is what i get
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<!--#include virtual="../cgi-bin/first.pl" -->
testing
</body>
</html>
my .shtml is inside htdocs and my .pl file is inside cgi-bin
hope you guys can help. thanks
|