Forum Moderators: phranque

Message Too Old, No Replies

.htaccess problems

         

RussellC

8:23 pm on Dec 2, 2002 (gmt 0)

10+ Year Member



Hey everyone,
I can't seem to get .htaccess files to work for the life of me. It seems whatever I do, I keeps asking me for the password on the directory I protected and wont let me in. This is with Apache 2.0 in Redhat 8.0 by the way.

I set AllowOverride to All. I have a .htpasswd file in /var/www/passwd that I creaded with htpasswd. My .htaccess file is in the dir I want protected and it looks like this:

AuthUserFile /var/www/passwd/.htpasswd
AuthGroupFIle /dev/null
AuthName "Restricted Area"
AuthType Basic

<Limit GET POST>
require valid-user
<Limit>

It keeps asking me for the username and password and won't let me in. Any Ideas?

Thanks, I am new to Apache.

-Russell

jdMorgan

8:39 pm on Dec 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is basically taken right off my site, where it works.

AuthUserFile /var/www/passwd/.htpasswd
AuthGroupFile /dev/null
AuthName Restricted Area
AuthType Basic

<Limit GET POST>
require user yourusername
<Limit>

HTH,
Jim

RussellC

8:44 pm on Dec 2, 2002 (gmt 0)

10+ Year Member



When I take the quotes away from AuthName "Restricted Area" I get a 500 Server Error. Very Strange.

RussellC

10:24 pm on Dec 2, 2002 (gmt 0)

10+ Year Member



Anyone have any other ideas on what could be the problem? something in my httpd.conf file?

sparrow

10:34 pm on Dec 2, 2002 (gmt 0)

10+ Year Member



Yes, you could conflicting information being presented. Look at it closely.