httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: Protecting a file with a password
Date Tue, 07 Mar 2006 00:06:51 GMT
On 3/6/06, Graham Leggett <minfrin@sharp.fm> 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.

Mime
View raw message