|
From: Martin Liddle on 21 Apr 2008 16:53 In message <es7vd5-s29.ln1(a)grimnir.webthing.com>, Nick Kew <nick(a)grimnir.webthing.com> writes >On Sun, 20 Apr 2008 13:49:55 GMT >Will Kemp <Will(a)xxxx.Swaggie.net> wrote: > >> > Have you added 'Includes' to the options directive for the server >> > root directory in httpd.conf? The default config doesn't include >> > that - you have to do it manually, or includes won't work. >> >> Oops! I didn't notice you said that was already there. It wasn't >> there in my default Fedora 8 config (httpd-2.2.8-1.fc8.x86_64.rpm)... > >You may well have been right first time. It's not clear from what's >posted whether the Options posted applies to the .shtml files in >question. Indeed, anything there could be overridden somewhere else >in the config. > >Only the OP's error log knows what's wrong. > I am still struggling with this; which log should I be studying? As far as I can see (but am definitely not an expert) there is nothing obvious overriding the 'Options Includes' that is applied to the root of the tree. I have tried adding a clause to apply to the sub directory in question but it doesn't help. -- Martin Liddle, Tynemouth Computer Services, 3 Kentmere Way, Staveley, Chesterfield, Derbyshire, S43 3TW. Web site: <http://www.tynecomp.co.uk>.
From: Owen Rees on 21 Apr 2008 19:11 On Mon, 21 Apr 2008 21:53:12 +0100, Martin Liddle <news09(a)tynecomp.co.uk> wrote in <KxS0vsX46PDIFwwA(a)tynecomp.invalid>: >I am still struggling with this; which log should I be studying? On Fedora the Apache log files are usually under /var/log/httpd and it is worth looking at both what are conventionally named access_log and error_log. Both location and names are set in the configuration and so could be changed, but that should be where they are if you are using the defaults. My usual tactic is to browse to the page that is not working how I expect and then look at whatever log files have just been updated. The latest entries should be at the end, and it should give some clues as to what the server saw and did. -- Owen Rees [one of] my preferred email address[es] and more stuff can be found at <http://www.users.waitrose.com/~owenrees/index.html>
From: Will Kemp on 22 Apr 2008 04:34 On Mon, 21 Apr 2008 21:53:12 +0100, Martin Liddle wrote: > In message <es7vd5-s29.ln1(a)grimnir.webthing.com>, Nick Kew > <nick(a)grimnir.webthing.com> writes >>On Sun, 20 Apr 2008 13:49:55 GMT >>Will Kemp <Will(a)xxxx.Swaggie.net> wrote: >> >>> > Have you added 'Includes' to the options directive for the server >>> > root directory in httpd.conf? The default config doesn't include >>> > that - you have to do it manually, or includes won't work. >>> >>> Oops! I didn't notice you said that was already there. It wasn't there >>> in my default Fedora 8 config (httpd-2.2.8-1.fc8.x86_64.rpm)... >> >>You may well have been right first time. It's not clear from what's >>posted whether the Options posted applies to the .shtml files in >>question. Indeed, anything there could be overridden somewhere else in >>the config. >> >>Only the OP's error log knows what's wrong. >> > I am still struggling with this; which log should I be studying? As far > as I can see (but am definitely not an expert) there is nothing obvious > overriding the 'Options Includes' that is applied to the root of the > tree. I have tried adding a clause to apply to the sub directory in > question but it doesn't help. No, options applied to the document root directory apply to subdirectories too. What about this section of http.conf? Is it properly configured? # 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 -- http://SnapAndScribble.com/will
From: Martin Liddle on 22 Apr 2008 05:29 In message <5qhPj.69883$jH5.24458(a)newsfe3-win.ntli.net>, Will Kemp <Will(a)xxxx.Swaggie.net> writes >No, options applied to the document root directory apply to >subdirectories too. > OK. That is how I had read it but I was running out of ideas. >What about this section of http.conf? Is it properly configured? > > # 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 > It looks fine (ie exactly as per your example). There is obviously something blindingly obvious staring me in the face but I am too stupid to see it. -- Martin Liddle, Tynemouth Computer Services, 3 Kentmere Way, Staveley, Chesterfield, Derbyshire, S43 3TW. Web site: <http://www.tynecomp.co.uk>.
From: Will Kemp on 22 Apr 2008 12:34 On Sat, 19 Apr 2008 22:27:37 +0100, Martin Liddle wrote: > 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? Looking back at your original post... Have you tried replacing "./" (which seems completely pointless!) with the full path to the errors.txt file? And, on another tack, have you tried renaming errors.txt to errors.shtml (and changing the name in the mail file, of course)??? I don't think your httpd.conf is configured to accept includes in .txt files, is it? -- http://SnapAndScribble.com/will
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Security for the desktop user Next: Best fast-booting text-console Linux? |