Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

newbie question about .htaccess

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  page cannot be displayed with "www.yyy.com&q..  
Author Message
jamesd

External


Since: Jul 01, 2003
Posts: 2



(Msg. 1) Posted: Tue Jul 01, 2003 2:26 pm
Post subject: newbie question about .htaccess
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: newbie question about .htaccess 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 2) Posted: Tue Jul 01, 2003 2:26 pm
Post subject: Re: newbie question about .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

James Dearnley <jamesd.DeleteThis@grantfinder.co.uk> wrote:
 > Can anyone explain the problem?

Check the error log of Apache, the actual problem is described in there,
it could be that the directory where you placed the password file isn't
readable, or is wrong or the password file haven't been created
correctly.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: newbie question about .htaccess 
Back to top
Login to vote
jamesd

External


Since: Jul 01, 2003
Posts: 2



(Msg. 3) Posted: Tue Jul 01, 2003 4:19 pm
Post subject: Re: newbie question about .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Turns out I needed to set AuthUserFile to point to the exact directory path
and name of the file in relation to the apache folder root, so it should
have been
AuthUserFile htdocs/www/.htpasswd

Works as expected now.
Thanks,
James

<davide.RemoveThis@yahoo.com> wrote in message
news:bdrpdi$10h8ci$5@ID-18487.news.dfncis.de...
 > James Dearnley <jamesd.RemoveThis@grantfinder.co.uk> wrote:
  > > Can anyone explain the problem?
 >
 > Check the error log of Apache, the actual problem is described in there,
 > it could be that the directory where you placed the password file isn't
 > readable, or is wrong or the password file haven't been created
 > correctly.
 >
 > Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie question about .htaccess 
Back to top
Login to vote
kfischer

External


Since: Jul 02, 2003
Posts: 1



(Msg. 4) Posted: Wed Jul 02, 2003 3:43 pm
Post subject: Re: newbie question about .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

From one newbie to another, I had this problem as well and had to change
permissions on the .htpasswd file.
"James Dearnley" <jamesd RemoveThis @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
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie question about .htaccess 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
VirtualDocumentRoot question - Hi! I have the following setting which works fine so far with a little problem: VirtualDocumentRoot /webspace/%2+/htdocs/%1 I can't find out where to place files for http://domain.com style domains without the leading subdomain. Regards, Florian..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]