The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Trying to password protect webpages, Having trouble logging in
czwief
post Jun 2 2009, 10:16 AM
Post #1





Group: Members
Posts: 3
Joined: 2-June 09
Member No.: 8,770



Hi everyone,

I'm trying to password protect a couple of webpages on my server. I'm creating a sample website where I work to give advertisers an easy place to look at stuff we've done for them. Can someone help me figure out what I'm doing wrong here? The website is here: http://www.tc.umn.edu/~zwief005

Here are the codes for a couple of the pages...

Under the "qwest" directory, here's the .htaccess:
CODE
AuthType Basic
AuthName "restricted area"
AuthUserFile \protect\qwest\.htpasswd
require qwest


And the qwest .htpasswd:
CODE
qwest:qwest


Dodge's .htaccess:
CODE
AuthType Basic
AuthName "restricted area"
AuthUserFile \~zwief005\protect\dodge\.htpasswd
require valid-user


Dodge's .htpasswd:
CODE
dodge:dodge


If you need any more information, please let me know. Thanks in advance!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
imort
post Jun 18 2016, 07:45 AM
Post #2





Group: Members
Posts: 7
Joined: 18-June 16
Member No.: 24,338



QUOTE(czwief @ Jun 2 2009, 09:16 PM) *

Dodge's .htpasswd:
CODE
dodge:dodge

If you need any more information, please let me know. Thanks in advance!


Hey

You need to provide the user password hash in the .htpasswd file instead of plain text password.
Take a look here for the usable tool: http://www.htaccesstools.com/htpasswd-generator/

You also need to use the absolute path to the file and make sure that apache has read permissions to this file too.
Check which user the apache process is running by and check file permissions.
You can also change the file owner to that user to keep it simple.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 14th December 2019 - 07:33 AM