[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 - restrict download with password

Martin A. Brooks wrote:
> Csanyi Pal wrote:
>> Any advices will be appreciated!
> Add a section like this to your apache config file:
>        <Location /path/to/virtual/location/>
>                AuthType Basic
>                AuthUserFile /path/to/htpasswd
>                AuthName "Who are you?"
>                Require valid-user
>        </Location>

Also, don't forget to create the password file with `htpasswd -c
/path/to/htpasswd username`


Roberto C. Sanchez

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: