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: 467 time(s)
Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10Average visitor rating of 9.3/10
.htpasswd

We do not need to create this file manually as we can easily manage it with �htpasswd� program. We can create the file with the following command line.

htpasswd �c /etc/httpd/conf/.htpasswd ravish 

Here, the �c flag creates a new file. You do not need to use this flag in case the file does not exist otherwise it will override the file. So, to add multiple usernames use the following syntax.

htpasswd /etc/httpd/conf/.htpasswd ewdi
htpasswd /etc/httpd/conf/.htpasswd neo
htpasswd /etc/httpd/conf/.htpasswd outvit


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.