Basic Auth + PAM config task failed

The document root /var/www/html of all web apps is on NFS share /data on storage server in Stratos Datacenter . We have a requirement where we want to password protect a directory in Apache web server document root. We want to password protect http://<website-url>:<apache_port>/protected URL as per below given requirements (you can use any website-url for it like localhost since there are no such specific requirements as of now):

a. We want to use basic authentication.

b. We do not want to use htpasswd file base authentication instead we want to use PAM authentication i.e Basic Auth + PAM . So that we can authenticate with a Linux user itself.

c. We already have a user jim with password LQfKeWWxWD which you need to provide access.

d. You can access the website on LBR link, to do so click on the + button on top of your terminal and select option Select port to view on Host 1 and after adding port 80 click on Display Port .

I had configured basic Auth + Pam while restarting the httpd service i am getting error message:
Job for httpd.service failed because the control process exited with error code. See “systemctlstatus httpd.service” and “journalctl -xe” for details.

[email protected] ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-05-29 06:40:04 UTC; 1min 37s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 436 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 435 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 435 (code=exited, status=1/FAILURE)

Even LBR Link also not getting active

Kindly resolve

Most likely u did mistake in conf file. Can u post it here, please ?

<Directory /var/www/html/auth-pam>
SSLRequireSSL
AuthType Basic
AuthName “PAM Authentication”
AuthBasicProvider external
AuthExternal pwauth
require valid-user

Directory is wrong and nossl

Is this the correct way

<Directory /var/www/html/auth-pam>

AuthType Basic
AuthName “PAM Authentication”
AuthBasicProvider external
AuthExternal pwauth
require valid-user

Completed sucessfully the task

Thanku