Add new users in apache

December 29, 2010 by
Filed under: Uncategorized 

Go to the directory where you want htpasswd to be located, as found in the AuthUserFile line in the conf file, e.g. in the file /etc/httpd/conf.d/trac.conf,

AuthUserFile /var/www/trac/htpasswd

then from the command line in that directory (e.g. /var/www/trac/):

htpasswd -c htpasswd admin

to create a new file (“-c”) and the admin account, then

htpasswd htpasswd nextuser

for additional users

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!