How to configure basic authentication in Apache httpd

Опубликовано: 28 Сентябрь 2024
на канале: Zariga Tongy
26,143
89

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