General discussion

Locked

HTML password problem

By hanes_ray ·
I'm trying to use .htaccess and .htpasswd to set up a password for a web page this is the .htaccess file.
---------------------------------------------
AuthUserFile /page/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic

require user JANUS
---------------------------------------------
.htpasswd

USERNAME:ENCRYPTED PASSWORD
---------------------------------------------
The problem I have is that after these are put on the server it asks for the user and pass and no matter what I put in (even the correct user and pass) it kicks me back to the user/pass box three times then kicks me to a not authorized page. Can anyone help here?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

HTML password problem

by hugevlad In reply to HTML password problem

Hi !

You put full path to AuthUserFile, but http-server usualy works on its own "root". Try use relative path to .htpasswd

With best regards,
Vlad.
mailto:hugevlad@yahoo.com

Collapse -

HTML password problem

by hanes_ray In reply to HTML password problem

Did nothing same result

Collapse -

HTML password problem

by spepper In reply to HTML password problem

On my server, (Apache/1.3.12, on Solaris) the proposed solution will not work. .htaccess requires an absolute Unix path, not an absolute server path. Relative paths do not work. You also need to make sure that the .htpasswd file is readable by the server.

For detailed instructions, assuming a Unix box, see http://www.wlu.ca/toolbox/howto/password.html

Collapse -

HTML password problem

by hanes_ray In reply to HTML password problem

Poster rated this answer

Collapse -

HTML password problem

by sdfgsdf In reply to HTML password problem

i'm not sure what server you are running, but if it is Microsoft's IIS, i am having a similiar problem. you see, UNIX manages user accounts via a database, thus allowing password protected pages, and user self created registration accounts. NT controls all user through the ACL via a domain controller. while a workgroup member usually can log in, users already logged onto a domain (ie network environment) cannot due to firewalls and proxys. i am trying to build a members only portion of a publicwebsite and i am running into this issue. i need to find a way around it.

Collapse -

HTML password problem

by hanes_ray In reply to HTML password problem

Poster rated this answer

Collapse -

HTML password problem

by hanes_ray In reply to HTML password problem

This question was closed by the author

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums