Install libnginx-mod-http-auth-pam by entering the following commands in the terminal:
sudo apt update sudo apt install libnginx-mod-http-auth-pam
Description:
PAM authentication module for Nginx
The nginx_http_auth_pam module enables authentication using PAM. . The module uses PAM as a backend for simple http authentication. It also allows setting the pam service name to allow more fine grained control.
Homepage: http://nginx.net
Version: 1.14.0-0ubuntu1
Section: universe/httpd