|
CentOS Linux Server Guide |
CentOS Web Server |
|||||||||||||
Authentication in Apache
There are 2 authentication method in Apache. There are:-
Host based authenticationHost based authentication is regulated using IP address, domain name, host name
User based authenticationUser based authentication is regulated by username and password of usinf authentication Internet Browser's dialogue box. There are 2 types of authentication method
Configure Basic AuthenticationStep1: Create a directory which intent to restrict access
Step2: Using htpasswd command to create authenticate use, we are using username "basic" here
Step3: Enter a password for user
Step4: Enter AuthType, AuthName, AuthUserFile
Add in the following into the httpd.conf file.
Step5: Changing ownership of .htpasswd file
Step6: Reload Apache web server
Step5: Testing and verify the setting Accessing the member folder via web
The following show the folder access after successful authentication.
Configure Digest AuthenticationStep1:Create a directory which you want to restrict the access.
Step2: Using htdigest to create
Step3: Enter a password for user
Step4:Add in the following into the httpd.conf file.
Step5: Changing ownership of .htpasswd file
Step6: Restart the Apache web server
|
|||||||||||||
|
Copyright 2011 http://www.1a-centosserver.com All Rights Reserved All trademarks are the property of their respective owners. Contact Us | Terms of Use | Privacy Policy |