Mailing List Archive

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 [ In reply to ]
This was posted the newsgroup, as you can see, and has
been replied to.

<Aram>
>
>
> 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
>
>
>


--
Aram W. Mirzadeh http://www.qosina.com/~awm/
MIS Manager To err is human, to really screw up you need a computer.
Qosina Corporation http://www.qosina.com/
Email: awm@qosina.com awm@liii.com
Re: flastmod problems in SSI [ In reply to ]
>
> This was posted the newsgroup, as you can see, and has
> been replied to.
>
> <Aram>

He needs to set the X-bit if you did not mention that...
Re: flastmod problems in SSI [ In reply to ]
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
Re: flastmod problems in SSI [ In reply to ]
Re: flastmod problems in SSI [ In reply to ]
At 08:37 AM 9/20/95 -0500, you wrote:
>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....)

Hmm... I thought I was using flastmod on 0.8.10 or something, but I guess
not. My time stamp uses echo & config, these work on 0.8.14 as well.

<!--#echo var="LAST_MODIFIED"-->
<!--#config timefmt="%a, %e-%h-%y"-->

<Aram>
--
Aram W. Mirzadeh, MIS Manager, Qosina Corporation
http://www.qosina.com/~awm/, awm@qosina.com
Apache httpd server team http://www.apache.org
Re: flastmod problems in SSI [ In reply to ]
I haven't tried that particular timefmt directive, but my includes test page
does set timefmt to a fairly unconventional value, and it does in fact "take".

rst
Re: flastmod problems in SSI [ In reply to ]
>
> 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 [ In reply to ]
>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

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

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

.....Roy
Re: flastmod problems in SSI [ In reply to ]
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 [ In reply to ]
>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).

odd, very odd.

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

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

>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.

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

.....Roy
Re: flastmod problems in SSI [ In reply to ]
>> 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