随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要:一、常见启动错误1."No mapping for the Unicode character exists in the target multi-byte code page"解决方案:Nginx所在的目录不能有中文二、常用命令 1.start nginx --启动 2.nginx -s sto...
阅读全文
摘要:1、反向代理全局配置 include mime.types; default_type application/octet-stream; client_max_body_size 100m; keepalive_timeout 65; proxy_read_timeout 600s; 2、http
阅读全文