altarhelp
07-28-2005, 01:59 PM
I cant seem to login to the section i have protected as it keeps asking for the username and password again and again.
I cant see an error but you guys might be able to spot one.
I need help, 5 days i have been trying to find the problem to this crazy error that is stopping me from logging in.
This is what i have:
my htaccess file:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/www/html/downloads/secure/.htpasswd
AuthGroupFile /dev/null
require valid-user
<files .htaccess>
Order allow,deny
Deny from all
</files>
<files .htpasswd>
Order allow,deny
Deny from all
</files>
Click here for screenshot of my htaccess file (http://img62.imageshack.us/img62/9486/access2or.jpg)
This is my .htpasswd file
golf:Zcj.PZxZrKna6
speaker:XVpSFvT.eM89U
Click here for screenshot of my htpasswd file (http://img62.imageshack.us/img62/8035/passwd3vw.jpg)
The .htaccess file and .htpasswd file are both in the folder "secure" below is the route.
This is my route: /var/www/html/downloads/secure
So as you can see i am protecting the "secure" section.
It keeps asking me for the username and password all the time.
The username is golf and the password is laser but it never seems to work.
I have the permissions set to:
secure folder: owner:read/write/exe | group: read/exe | others: read/exe
htaccess: owner: read/write group: read other: read
htpasswd: owner: read/write group: read other: read
Click here for screenshots of my permissions (http://img62.imageshack.us/img62/1626/image9jq.jpg)
what do you think?
do i need to put my domain name anywhere?
i saved the htaccess and htpasswd in notepad then uploaded it to the server as .htaccess and .htpasswd
I cant see an error but you guys might be able to spot one.
I need help, 5 days i have been trying to find the problem to this crazy error that is stopping me from logging in.
This is what i have:
my htaccess file:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/www/html/downloads/secure/.htpasswd
AuthGroupFile /dev/null
require valid-user
<files .htaccess>
Order allow,deny
Deny from all
</files>
<files .htpasswd>
Order allow,deny
Deny from all
</files>
Click here for screenshot of my htaccess file (http://img62.imageshack.us/img62/9486/access2or.jpg)
This is my .htpasswd file
golf:Zcj.PZxZrKna6
speaker:XVpSFvT.eM89U
Click here for screenshot of my htpasswd file (http://img62.imageshack.us/img62/8035/passwd3vw.jpg)
The .htaccess file and .htpasswd file are both in the folder "secure" below is the route.
This is my route: /var/www/html/downloads/secure
So as you can see i am protecting the "secure" section.
It keeps asking me for the username and password all the time.
The username is golf and the password is laser but it never seems to work.
I have the permissions set to:
secure folder: owner:read/write/exe | group: read/exe | others: read/exe
htaccess: owner: read/write group: read other: read
htpasswd: owner: read/write group: read other: read
Click here for screenshots of my permissions (http://img62.imageshack.us/img62/1626/image9jq.jpg)
what do you think?
do i need to put my domain name anywhere?
i saved the htaccess and htpasswd in notepad then uploaded it to the server as .htaccess and .htpasswd
