53GB

How to configure basic authentication in Apache httpd



How to configure basic authentication in Apache httpd

How to configure basic authentication in Apache httpd
htppaswd
vim /etc/httpd/conf.d/mod_auth_basic.conf
AuthType Basic
AuthName ‘Private scripts’
AuthUserFile ‘/etc/httpd/conf/.htpasswd’
Require valid-user
htpasswd -c /etc/httpd/conf/.htpasswd cent

Exit mobile version