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

Re: apache2 - restrict download with password



Hello!

On Sun, Jun 04, 2006 at 07:32:48AM -0400, Roberto C. Sanchez wrote:
> 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`

I did so, thanks! :-)

Now I don't know where to put in mine files to download?
Can I put these files in ~/public_html/downloads/ ?

-- 
Regards, Csányi Paul
http://www.ektf.hu/~Csanyi.Pal (Up to now, it is in Hungarian only.)
http://csanyipal.info/moodle  <<<---  Moodle - Course Management System
http://csanyipal.info:81      <<<---  sTeam - Cooperative Learning



Reply to: