Dmitry the Zuryanovich wrote:
>On Sun, May 15, 2005 at 06:08:42PM +0200, David N. Welton wrote:
>
>
>>>I have a directory with ErrorDocument 404 /feed/holder.rvt in .htaccess .
>>>When I get a GET request, holder.rvt is launched and works fine.
>>>But HEAD request gets 404 Not found response.
>>>Is it an apache problem or rivet-specific? What to do?
>>>
>>>
>>Looks as if it may indeed be a Rivet thing. I see this in the code:
>>
>> r->allowed |= (1 << M_GET);
>> r->allowed |= (1 << M_POST);
>> if (r->method_number != M_GET && r->method_number != M_POST) {
>> retval = DECLINED;
>> goto sendcleanup;
>> }
>>
>>
>
>M_HEAD is not defined in apache includes.
>
>
Oops - indeed.
I went back and thought about this, and everything is working as it should:
[EMAIL PROTECTED]:~$ GET -s http://localhost/doesntexist
404 Not Found
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
...
[EMAIL PROTECTED]:~$ HEAD -s http://localhost/doesntexist
404 Not Found
Connection: close
Date: Tue, 17 May 2005 22:44:03 GMT
Accept-Ranges: bytes
ETag: "3e423e-17f-428a6c6a;428a7115"
Server: Apache/1.3.33 (Debian GNU/Linux)
Content-Length: 383
Content-Type: text/html; charset=iso-8859-1
Last-Modified: Tue, 17 May 2005 22:12:58 GMT
Client-Date: Tue, 17 May 2005 22:44:03 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Of *course* it's a not found, that's the whole point of 404 :-) The GET
request returns a 'not found' too, just that it gives you some HTML to
look at while you are contemplating the missing page... So everything
is working as it should be.
--
David N. Welton
- http://www.dedasys.com/davidw/
Apache, Linux, Tcl Consulting
- http://www.dedasys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]