摘要:windows 中nginx奇葩报错 nginx: [emerg] unknown directive "#" in  nginx/conf/nginx.conf:3 经过: 用记事本打开nginx.conf 配置文件,后来启动nginx就开始报错,报错内容如下 nginx: [emerg
阅读全文
摘要:nginx 杂文 01) nginx location模块 location模块执行先后 02) nginx全局变量 Alphabetical index of variables Module ngx_http_core_module 搜索 Embedded Variables 官网位置:ngin
阅读全文
摘要:nginx 设置 404 500 页面跳转到指定页 默认情况下 nginx 是不支持自定义 500 、400 页面; 修改配置文件 conf/nginx.conf 添加页面重定向,在 http 内添加一行; fastcgi_intercept_errors on; 在 service 内添加一行指定
阅读全文
摘要:./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option
阅读全文
摘要: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;
阅读全文
摘要:1、重启之前检测配置是否正确 /usr/sbin/nginx -t 2、重启 /usr/sbin/nginx -s reload 【这种方式可能会遇到 nginx: [error] invalid PID number "" in "/run/nginx.pid" 这样的错误】 nginx -c /
阅读全文
摘要: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
阅读全文
摘要:1、显示目录 autoindex on; #开启nginx目录浏览功能 autoindex_exact_size off; #文件大小从KB开始显示 autoindex_localtime on; #显示文件修改时间为服务器本地时间 2、显示乱码 default_type 'text/html';
阅读全文