Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

secure access using htpasswd

Status
Not open for further replies.

jshoker

MIS
Nov 26, 2002
9
CA
Hi,

I am trying to setup up apache2 on to use user authentication to access directories. This is how I did it

1) Use htpasswd to create a password for the user
2) Created a group file
3) modified the http.conf file with the following setup]

<Directory /home/sites/web/secure>
AuthType Basic
AuthName &quot;secure access&quot;
AuthUserFile /home/sites/passwords
AuthGroupFile /home/sites/groups
Require group secure
</Directory>

There is page with a link to a pdf in the secure directory. After the changes I am not prompted for access at all but allowed directly in. What have I done wrong? I did httpd -l and it showed the auth_mod.c and aut_access.c so the modules should be available right? Any help would be apreciated.

jshoker
 
Did you restart the server? You have to restart Apache after making changes to httpd.conf
 
No I didn't restart the server. I didn't know that you had to restart the server in order for changes in the httpd.conf to take affect. Also the web server is being hosted by web host company and I wasn't sure what their procedures were for restarting ther server. I will check and try thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top