VPS侦探论坛

 找回密码
 注册
查看: 513|回复: 3

怎么安装nginx拓展ngx_http_auth_request_module

[复制链接]
发表于 2023-12-5 14:44:26 | 显示全部楼层 |阅读模式

目前版本是:


[root@localhost nginx]# nginx -V
nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.1.1k  25 Mar 2021
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-stream --with-stream_ssl_module --with-openssl=/root/lnmp1.8/src/openssl-1.1.1k --with-openssl-opt='enable-weak-ssl-ciphers'



想安装ngx_http_auth_request_module  提升安全性,请问怎么安装
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-12-6 10:46:06 | 显示全部楼层


lnmp.conf 中按要求加上 --with-http_auth_request_module  就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-12-12 13:50:53 | 显示全部楼层

licess 发表于 2023-12-6 10:46
lnmp.conf 中按要求加上 --with-http_auth_request_module  就行了

如果已经安装过lnmp,不想重新安装一次,如何添加这个模块?

补充内容 (2023-12-12 21:04):
现在没事了, 我还是重新编译了一下nginx
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-12-14 08:59:47 | 显示全部楼层



foboy 发表于 2023-12-12 13:50
如果已经安装过lnmp,不想重新安装一次,如何添加这个模块?

补充内容 (2023-12-12 21:04):

是的,加上后升级脚本升级nginx就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-6 11:54 , Processed in 0.026267 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表