大飞_dafei

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Nginx

windows 中nginx奇葩报错 nginx: [emerg] unknown directive "#" in&#160; nginx/conf/nginx.conf:3
摘要:windows 中nginx奇葩报错 nginx: [emerg] unknown directive "#" in&#160; nginx/conf/nginx.conf:3 经过: 用记事本打开nginx.conf 配置文件,后来启动nginx就开始报错,报错内容如下 nginx: [emerg 阅读全文

posted @ 2019-01-20 15:22 大飞_dafei 阅读(556) 评论(0) 推荐(0) 编辑

nginx 杂文----01
摘要:nginx 杂文 01) nginx location模块 location模块执行先后 02) nginx全局变量 Alphabetical index of variables Module ngx_http_core_module 搜索 Embedded Variables 官网位置:ngin 阅读全文

posted @ 2018-06-07 11:57 大飞_dafei 阅读(73) 评论(0) 推荐(0) 编辑

nginx 设置 404 500 页面跳转到指定页面
摘要:nginx 设置 404 500 页面跳转到指定页 默认情况下 nginx 是不支持自定义 500 、400 页面; 修改配置文件 conf/nginx.conf 添加页面重定向,在 http 内添加一行; fastcgi_intercept_errors on; 在 service 内添加一行指定 阅读全文

posted @ 2018-03-23 16:15 大飞_dafei 阅读(1692) 评论(0) 推荐(0) 编辑

ubuntu15 安装nginx 报错:the HTTP rewrite module requires the PCRE library.
摘要:./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option 阅读全文

posted @ 2018-03-13 16:21 大飞_dafei 阅读(669) 评论(0) 推荐(0) 编辑

nginx: 400 Bad Request | The plain HTTP request was sent to HTTPS port
摘要:nginx: 400 Bad Request | The plain HTTP request was sent to HTTPS port nginx版本1.0.4 nginx一般情况下配置; server { listen 443; server_name localhost; ssl on; 阅读全文

posted @ 2018-03-01 14:19 大飞_dafei 阅读(1706) 评论(0) 推荐(0) 编辑

nginx 重启
摘要:1、重启之前检测配置是否正确 /usr/sbin/nginx -t 2、重启 /usr/sbin/nginx -s reload 【这种方式可能会遇到 nginx: [error] invalid PID number "" in "/run/nginx.pid" 这样的错误】 nginx -c / 阅读全文

posted @ 2018-02-26 17:32 大飞_dafei 阅读(101) 评论(0) 推荐(0) 编辑

linux安装目录和nginx.conf文件配置目录
摘要:linux安装目录和nginx.conf文件配置目录 1、查看nginx安装目录 ps -aux | grep nginx 【返回结果包含安装目录】 root 9764 0.0 0.1 124764 1400 ? Ss Feb25 0:00 nginx: master process /usr/sb 阅读全文

posted @ 2018-02-26 16:58 大飞_dafei 阅读(100) 评论(0) 推荐(0) 编辑

nginx 配置
摘要:1、显示目录 autoindex on; #开启nginx目录浏览功能 autoindex_exact_size off; #文件大小从KB开始显示 autoindex_localtime on; #显示文件修改时间为服务器本地时间 2、显示乱码 default_type 'text/html'; 阅读全文

posted @ 2018-01-26 16:13 大飞_dafei 阅读(68) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示