Noname
Noname

Nginx
文章归档

安装nginx-openresty

1. 安装nginx # 下载软件 [root@localhost ~]# pwd /root [root@localhost ~]# wget https://openresty.org/download/openresty-1.19.3.1.tar.gz [root@localhost ~]# wget https://ftp.openssl.org/source/openssl-1.1.1i.tar.gz [root@localhost ~]# wget https://f…

   465   2021-04-02   查看

Centos7 安装nginx【yum和编译安装】

Centos7 yum源安装nginx 官网包安装文档 nginx的版本有Mainline version【主线版本】、Stable version【稳定版本】、Legacy versions【旧版本】 本示例介绍Centos7 yum源安装nginx的Mainline version【主线版本】和Stable version【稳定版本】,如Debian、Ubuntu等请…

   283   2020-04-01   查看

用 acme.sh 申请 ZeroSSL 通配符证书/自动续期

更新 20221116:鉴于现在 acme.sh 默认的 CA 是 ZeroSSL,所以本文也做一些对应的修改。 如果因为某些原因想换回原来的 Let’s Encrypt CA,请使用以下命令 acme.sh --set-default-ca --server letsencrypt 另外,以前安装的 acme.sh 依然会使用 Let’s Encrypt CA 签发…

   1,115   2019-12-26   查看

Nginx配置仅允许cloudflare回源IP访问

本例将以centos7下的配置为例子,说明如何让Nginx只接受cloudflare(以下简称cf)的回源请求,不允许其他客户端直接访问源服务器。 首先编写一个脚本,用于自动获取最新的cf回源IP,并转换成nginx的配置文件格式。 将以下shell脚本保存到nginx配置文件夹下 vi /usr/lo…

   1,404   2019-08-09   查看