Apache access right htaccess
Set a password database htpasswd -c /var/www/html/www.abc.com/.passwd user chmod 750 /var/www/html/www.abc.com/.passwd chown apache:apache /var/www/html/www.abc.com/.passwd Set a file’.htaccess’ in corresponding directory (var/www/html/www.abc.com) In ‘.htaccess’ set the following option AuthType Basic Auth Name “Hello ! Please Login !” AuthUserFile /var/www/html/www.abc.com/.passwd require vaild-user Restart apache server cd /etc/httpd/conf vi httpd.conf <Directory”/var/www/www.example.com”> AllowOverride AuthConfig </Directory> Edit the file /etc/httpd/conf/httpd.conf, [...]


