http авторизация

    В консоли:

    yum -y install httpd-tools
    htpasswd -c /etc/nginx/.htpasswd user_name
    chown nginx:nginx /etc/nginx/.htpasswd

    В конфигурации хоста:

    auth_basic  "Restricted Area";
    auth_basic_user_file  /etc/nginx/.htpasswd;

    Copyright © 2022Powered by Bludit