Web Hosting Talk







View Full Version : htaccess


FireFoz
05-16-2001, 06:07 PM
Hi,

I got my own RaQ3. I made a .htaccess file with the command:
/usr/sbin/htpasswd .htpasswd -c loginname

Then i made a .htaccess:

AuthUserFile /home/sites/site2/.htpasswd
AuthGroupFile /dev/null
AuthName "Realm name"
AuthType Basic
<Limit GET>
require valid-user
</Limit>

Im 100% sure the path and password are correct.
Then I place the .htaccess file in the dir that i want to protect. When i try to access that dir, it asks for l/p, just like it should. But then it doesnt accept my l/p. Im so sure that the l/p is right, i tried it several times, and made the .htaccess file over and over again.
Does anybody know what is wrong?

Thanks

Keeg
05-16-2001, 07:03 PM
check your access.conf and make sure that site has the lines needed for htaccess to work . its a common problem on a raq server for it to forget to add domains into the conf file.

Steve

(SH)Saeed
05-16-2001, 07:17 PM
FireFoz,

http://teamcobalt.interliant.com/pg_faq_server.shtml#passwd


enjoy! ;)

Dim8
05-17-2001, 06:08 AM
When creating a .htaccess on a RaQ server, the username/password must be the username/password of the site. OR include the following line in your .htaccess

AuthPAM_Enabled off

and than the username/password can be anything.

FireFoz
05-17-2001, 08:53 AM
That works! Thats so much, this problem took me days! :)

Pingu
05-17-2001, 05:30 PM
THAT explains the same sort of problem I was having. I couldn't figure it out, and no one else could figure it out...

Now this makes sense, finally, after weeks and weeks...

aura9
05-23-2001, 05:53 PM
Originally posted by Keeg
check your access.conf and make sure that site has the lines needed for htaccess to work . its a common problem on a raq server for it to forget to add domains into the conf file.

Steve

I'm having the same problem even after I set the AuthPam to 'off'. What lines are needed for htaccess to work? :(