随笔分类 - Nginx
摘要:rewrite指令 该指令通过正则表达式的使用来改变URI.可以同时存在一个或者多个指令,按照顺序一次对URL进行匹配和处理。该指令可以在server块后者location块中配置 语法: 指令语法:rewrite regex replacement [flag]; rewrite是实现URL重定向
阅读全文
摘要:隐藏版本号 在nginx.conf server_tokens官方说明 2、更改源码隐藏软件及版本号 需要修改3个源文件 nginx.h ngx_http_header_filter_module.c ngx_http_special_response.e
阅读全文
摘要:Nginx部署 1、 基础环境大家 #yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel 2、 创建用户组 useradd nginx -s /sbin/nologin -M 3
阅读全文
摘要:[emerg]: getpwnam(“nginx”) failed 没有安装nginx用户导致的无法启动 [root@iZwz95e0klmdiuxpv2t09jZ application]# useradd -s /sbin/nologin -M nginx
阅读全文
摘要:1、 基础环境搭建 #yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel 2、 创建用户组 useradd nginx -s /sbin/nologin -M 3、 安装ngin
阅读全文