随笔分类 -  Nginx

摘要:server { listen 80; server_name xxx.cn www.xxx.cn; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name xxx.cn ww 阅读全文
posted @ 2023-06-30 13:58 b̶i̶n̶g̶.̶ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1、官网地址 http://nginx.org/en/download.html 2、安装nginx yum -y install gcc gcc-c++ autoconf automake make yum -y install openssl openssl-develyum -y instal 阅读全文
posted @ 2021-05-06 10:37 b̶i̶n̶g̶.̶ 阅读(138) 评论(0) 推荐(0) 编辑
摘要:一、常见启动错误1."No mapping for the Unicode character exists in the target multi-byte code page"解决方案:Nginx所在的目录不能有中文二、常用命令 1.start nginx --启动 2.nginx -s sto... 阅读全文
posted @ 2015-12-14 11:52 b̶i̶n̶g̶.̶ 阅读(469) 评论(0) 推荐(0) 编辑
摘要:1、反向代理全局配置 include mime.types; default_type application/octet-stream; client_max_body_size 100m; keepalive_timeout 65; proxy_read_timeout 600s; 2、http 阅读全文
posted @ 2015-07-01 16:20 b̶i̶n̶g̶.̶ 阅读(503) 评论(0) 推荐(0) 编辑