You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@organic.com> on 1996/06/08 23:37:34 UTC

POST to /(index.cgi)

Late breakign bug...

If your DirectoryIndex is "index", and you make a request to a directory 
with an index.cgi in it like

http://bong.com/~brian/aptest/

then you'll get a "501 Not Implemented" response, though if you call

http://bong.om/~brian/aptest/index

or

http://bong.om/~brian/aptest/index.cgi

it works fine.  This looks and feels like a bug... anyone want to take a 
look?  (you can use the above URL for your own edification)

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  |  We're hiring!  http://www.organic.com/Home/Info/Jobs/


Re: POST to /(index.cgi)

Posted by Brian Behlendorf <br...@organic.com>.
On Sat, 8 Jun 1996, Alexei Kosut wrote:
> On Sat, 8 Jun 1996, Brian Behlendorf wrote:
> 
> > Late breakign bug...
> > 
> > If your DirectoryIndex is "index", and you make a request to a directory 
> > with an index.cgi in it like
> > 
> > http://bong.com/~brian/aptest/
> > 
> > then you'll get a "501 Not Implemented" response, though if you call
> 
> It's not a bug. It's a feature. From mod_dir.c:
> 
>     if (r->method_number != M_GET) return NOT_IMPLEMENTED;
> 
> Don't know *why* it's there, but presumably, there's a reason.

Yup, removing it fixes the problem.  Anyone else see a reason for why 
this chunk of code should exist?

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  |  We're hiring!  http://www.organic.com/Home/Info/Jobs/


Re: POST to /(index.cgi)

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Sat, 8 Jun 1996, Brian Behlendorf wrote:

> Late breakign bug...
> 
> If your DirectoryIndex is "index", and you make a request to a directory 
> with an index.cgi in it like
> 
> http://bong.com/~brian/aptest/
> 
> then you'll get a "501 Not Implemented" response, though if you call

It's not a bug. It's a feature. From mod_dir.c:

    if (r->method_number != M_GET) return NOT_IMPLEMENTED;

Don't know *why* it's there, but presumably, there's a reason.

-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/
 
      "War does not determine who is right, only who is left."