Web Servers on Windows - SSI not working

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > March 2005 > SSI not working





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SSI not working
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

keanlee@gmail.com

2005-03-03, 7:47 am

This is from the error log:

[Thu Mar 03 19:15:32 2005] [warn] [client 127.0.0.1] mod_include:
Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter
removed

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com