This is a discussion on Re: newbie question about .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; From one newbie to another, I had this problem as well and had to change permissions on the .htpasswd file. &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
From one newbie to another, I had this problem as well and had to change
permissions on the .htpasswd file. "James Dearnley" <jamesd@grantfinder.co.uk> wrote in message news:1057055232.256123@azores.network-i.net... > I have a private website folder which I would like to password protect so I > have followed the instructions on the Apache website and some other sites to > write an .htaccess file. This results in a pop up box which asks for the > username and password. The problem is that on entering the details (which > are in the .htpasswd file) the same pop up box appears again and again, only > after selecting cancel does the page come up saying authorisation required, > etc. This seems to be the case whether or not correct details are entered. > > My httpd.conf file has in it for that directory : > AllowOverride AuthConfig > The .htaccess file contains: > > AuthUserFile {directory}.htpasswd > AuthName "Restricted files" > AuthType Basic > <Limit GET> > require valid-user > </Limit> > > Can anyone explain the problem? > Thanks in advance, > James > > > |