News Register Control Panel Private Messages Members List Team Search News Posts About Us
 

HTTP authentication with .htaccess protection
  Author: Ravish Ahuja
Added: 12/01/2002
Type: Tutorial
Viewed: 715 time(s)
Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10Average visitor rating of 9.5/10
.htaccess

This file should contain the following lines.

AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /dev/null
AuthName ravish
AuthType Basic
require user ravish

In case you wish to add multiple users add the following lines. 

AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /etc/httpd/conf/.htgroup
AuthGroupFile /dev/null
AuthName ravish
AuthType Basic
require user ravish


Article Pages:  � Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Next �  


How would you rate this article:    Bad Good   Go � 


� Copyright Linux Advisory 2003. All rights reserved.
We are not responsible for the comment and story contributed by users.