Showing posts from June, 2012

How to apply Apache(HTTP) authentication on any Domain

HTTP authentication is a process of applying authentication to our Domain so that only authorized people can access it.

The following command is used to create the password file in the doc root which is used to store the passwords of the users to whom you want to give the access.

/usr/local/apache/bin/htpasswd -c /var/www/ username  
htpasswd -c /var/www/ username

Use  /usr/local/apache/bin/htpasswd if you are using a Apache with source installation so that it can locate the htpasswd command to create the password file.htpasswd can be directly used if you have done default installation by using tools like yum, rpm etc.-c is used to create the passwd file in the doc root.If you want to add a new user to current file don't use -c as it will create the new file, use the same command without -c and new user name./var/www/ is the destination of the file where you want to create the password file and passwd is the file n…