On 3/6/06, Graham Leggett <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have just tried to convince httpd v2.2.0 to password protect a single
> file on the filesystem, but without any success.
>
> Does anybody know whether this is possible?
>
> I tried
>
> <Location /cgi-bin/dir/file.cgi>
>
> and
>
> <Files /full/path/to/cgi-bin/dir/file.cgi>

The first one should work.  The last one won't.  The recommended
config is something like
<Directory /full/path/to/cgi-bin/dir/>
<Files file.cgi>
...
</Files>
</Directory>

We should really give an error if you try to use a slash in a <Files> statement.

Joshua.

Reply via email to