You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1995/09/20 01:52:06 UTC

flastmod problems in SSI

Anyone tried this?

   Newsgroups: comp.infosystems.www.servers.unix
   From: p9490086@qub.ac.uk (Tony Bowden)
   Date: 18 Sep 95 19:26:06 GMT

   On a page under NCSA 1.3 I have the following :

   This page was last modified on
   <!--#config timefmt="%A %d %B %y" -->
   <!--#flastmod file="index.html" -->.


   Under Apache it doesn't work.

   Anyone any ideas why?

   (I thought NCSA->Apache was supposed to be "100% compatible with your
   existing NCSA 1.3 setup." [from the FAQ])


   Tony




Re: flastmod problems in SSI

Posted by "James H. Cloos Jr." <cl...@JHCloos.COM>.
>> Also, I just tested using a symlink from under DocumentRoot to the
>> file that is in (my) UserDir.  That works.

Roy> Then your access.conf or .htaccess is not correct, or their is
Roy> some weird bug in access checking.  In any case, the error you
Roy> reported was coming from Unix, not Apache.  Have you tried the
Roy> test under gdb?

As I said, the access.conf has the same permissions for everywhere,
and there is no .htaccess in any of the directories above the UserDir.

I'll be trying with gdb tomorrow.

Roy> I already tested it on my system, and it works fine.  What
Roy> happens if you specifically list Options Includes instead of just
Roy> Options All?

No change.

-JimC
-- 
James H. Cloos, Jr.	include <std/qotd>
James.Cloos@JHCloos.COM	include <std/disclaimers.h>
Work: cloos@io.com	URL:	http://www.jhcloos.com/~cloos/
LPF,Usenix,SAGE,ISOC	Snail:	POBox 18122 Austin, TX 78760-8122


Re: flastmod problems in SSI

Posted by "James H. Cloos Jr." <cl...@JHCloos.COM>.
Jim> The error from error_log is:

Jim> unable to get information about Permission denied/index.html in
Jim> parsed file /home/c/cloos/public-web/test.shtml

Roy> That says that the server does not have permission to stat the
Roy> file in question, which means

Roy>    a) the directory has the wrong permission (must be
Roy> readable+executable) b) the file has the wrong permission (must
Roy> be readable) c) the server is running with no permission to do
Roy> anything (sometimes happens on AFS).

However, the directory is 755, as are all directories above it.  The
file is 644 as a .shtml file and/or 744 as a .html file, and the
account the server is running as has std other perms for the
filesystem in question.  (A std nfs mount).

Also, I just tested using a symlink from under DocumentRoot to the
file that is in (my) UserDir.  That works.

Please compare:

1) <URL:http://www.io.com/test.shtml>		file in DocRoot
2) <URL:http://www.io.com/~cloos/test.shtml>	file in UserDir
3) <URL:http://www.io.com/test2.shtml>		a symlink in DocRoot
						to example 2.

Seems mod_include and mod_userdir don't get along.

-JimC
-- 
James H. Cloos, Jr.	include <std/qotd>
James.Cloos@JHCloos.COM	include <std/disclaimers.h>
Work: cloos@io.com	URL:	http://www.jhcloos.com/~cloos/
LPF,Usenix,SAGE,ISOC	Snail:	POBox 18122 Austin, TX 78760-8122

Re: flastmod problems in SSI

Posted by "James H. Cloos Jr." <cl...@JHCloos.COM>.
> 
> Randy> Anyone tried this?
> 
> |> This page was last modified on <!--#config timefmt="%A %d %B %y"
> |> --> <!--#flastmod file="index.html" -->.
> 
> Randy>    Under Apache it doesn't work.

This is a misquote. I forwarded the help request from the
newsgroup to this list. The person posting the message said it
does not work.

I also verified that this worksas advertised. I suspect that the
person posting the problem does not have the X-bit set.

Yes, the second `Randy>' should have been a `|>'.  Sorry about that.

But flastmod, fsize and include all fail for me with a [an error...]
output.

The section of access.conf for the dir I tried it in looks like:

----------
<Directory /home/*/public-web>
Options All MultiViews
XBitHack Full
AllowOverride All
<Limit GET PUT POST>
order allow,deny
allow from all
</Limit>
</Directory>
----------

When I try it from the DocumentRoot, however, it does in fact work.
The access.conf section for that looks like:

----------
<Directory /usr/local/www>
Options All MultiViews
XBitHack Full
AllowOverride All
<Limit GET PUT POST>
order allow,deny
allow from all
</Limit>
</Directory>
----------

In both cases, using .shtml vs the XBitHack makes no difference.

I bet the original reporter of this was using it in a UserDir.

Changing the time format has no effect on whether or not it works.

The error from error_log is:

unable to get information about Permission denied/index.html in
 parsed file /home/c/cloos/public-web/test.shtml

Plus, looking at the access.conf, it turns out I never removed the
<Directory /> section that I added back before wildcards in Directory
worked.  Said section looks the same as the .../*/public-web one above.

The server in question is running under Linux.

-JimC
-- 
James H. Cloos, Jr.	include <std/qotd>
James.Cloos@JHCloos.COM	include <std/disclaimers.h>
Work: cloos@io.com	URL:	http://www.jhcloos.com/~cloos/
LPF,Usenix,SAGE,ISOC	Snail:	POBox 18122 Austin, TX 78760-8122

Re: flastmod problems in SSI

Posted by "James H. Cloos Jr." <cl...@JHCloos.COM>.
Randy> Anyone tried this?

|> This page was last modified on <!--#config timefmt="%A %d %B %y"
|> --> <!--#flastmod file="index.html" -->.

Randy>    Under Apache it doesn't work.

Just did.  And after getting the default error message, I tried fsize
and include, too.  Then I tried them with virtual attribs rather than
file attribs.

Got the error every time.

Echo, config and exec seem to work OK, but include, fsize and flastmod
fail.

I'm currently running .13 with the 01a and 05 patches.  (Haven't had a
chance the test the rest....)

-JimC
-- 
James H. Cloos, Jr.	Snail:	POBox 18122 Austin, TX 78760-8122   Usenix,SAGE
cloos@io.com		URL:	http://www.jhcloos.com/~cloos/      LPF,ISOC