Re: Problem getting Server Side Includes SSI to work on Fedora 8.
Martin Liddle writes:
> Please can someone put me out of my misery. I have come back to this
> problem several times over the last couple of weeks and have Googled
> extensively but can't find the solution.
>
> One of our applications uses a web interface for control purposes and
> amongst other things uses a server side include to display a simple
> ASCII text file of errors. This used to work at RedHat 9 but the server
> has been updated several times recently and is currently running Fedora
> 8 (httpd-2.2.8-1.fc8). The httpd.conf is unchanged from the Fedorea
> default and has for the DocumentRoot directory an
>
> Options Includes Indexes FollowSymLinks
>
> and later on there is an
>
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
>
> A subdirectory below the document root has the .shtml file and the
> critical line is (I think):
>
> <!--#include virtual="./errors.txt" -->
>
> errors.txt is present and readable. What am I doing wrong or how do I
> get some debugging information?
Time for a new tack, I suppose. What does the error log say? On my
install (of course it is 100% configurable to be in different places and
with different names, so YMMV) I get:
$ tail /var/log/apache2/error.log
[Mon Apr 21 23:26:04 2008] [warn] [client XXX.YYY.ZZZ.WWW] mod_include:
Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter
removed
if the Includes setting has been altered or removed by some subsequent
directive, but I get:
[Mon Apr 21 23:27:58 2008] [error] [client XXX.YYY.ZZZ.WW] File does
not exist: /home/ben/HTML/test/testing/errors.txt
if the file is processed for includes but, for some reason, the text
file is not in the right place.
Do you even have an error log (it may be combined with your ordinary
log) and does it have any clues in it?
--
Ben.
date: Tue, 22 Apr 2008 13:39:52 +0100
author: Ben Bacarisse
|