Nginx

官方网站

安装

1、配置安装源

2、安装 nginx

使用

例子:将http协议的请求自动重定向为https协议请求

例子:配置4层tcp代理并开启客户端IP透传

开启 proxy_protocol 前需要通过 nginx -V 2>&1 | grep -- 'stream_realip_module' 命令检查 stream_realip_module 模块是否启用

例子:配置7层http代理并开启客户端IP透传

开启 proxy_protocol 前需要通过 nginx -V 2>&1 | grep -- 'http_realip_module' 命令检查 http_realip_module 模块是否启用

最后更新于