SSI not working

This is a discussion on SSI not working within the Windows Web Servers forums, part of the Web Server and Related Forums category; hi, i just install apache 2.0.52. i try to configure apache to recognise ssi by taking off the # ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2005
keanlee@gmail.com
 
Posts: n/a
Default SSI not working

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

  #2 (permalink)  
Old 03-03-2005
keanlee@gmail.com
 
Posts: n/a
Default Re: SSI not working

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

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0