sheikh
sheikh

Reputation: 117

Using PAM with nginx in CentOS 7

I'm new to linux. I'm planning on using PAM with linux user to authenticate nginx server access. I installed nginx from epel. But it seems that auth_pam module is not available with the nginx rpm. Can anyone give me some insight?

Thanks

Upvotes: 1

Views: 3175

Answers (2)

Danila Vershinin
Danila Vershinin

Reputation: 9865

The pam nginx module is available via RPM installation here:

yum install https://extras.getpagespeed.com/release-el7-latest.rpm
yum install nginx-module-auth-pam

To enable this module, add the following to /etc/nginx/nginx.conf and reload nginx:

load_module modules/ngx_http_auth_pam_module.so;

Upvotes: 0

Aleksey Deryagin
Aleksey Deryagin

Reputation: 2675

You need to compile ngx_http_auth_pam_module from source in CentOS 7, packaged version available for Debian only (nginx-extras or nginx-full package).

See source repo for details: https://github.com/stogh/ngx_http_auth_pam_module

Upvotes: 1

Related Questions