4.centos8 yum直接安装简单配置nginx
摘要:1.安装nginx yum install -y nginx 2.启动nginx systemctl start nginx.service 3.设置开机自启 systemctl enable nginx.service 4.nginx 配置信息 网站文件存放默认位置(Welcome to ngin
阅读全文
3.cert(https)验证
摘要:cd /var/nginx mkdir cert rz上传相应的key和pem 5403683__xxxx.com.key 5403683__xxxx.com.pem
阅读全文
2.nginx添加gzip配置,提高页面访问速度
摘要:添加gzip配置 gzip on; gzip_buffers 32 4K; gzip_comp_level 6; gzip_min_length 100; gzip_types application/javascript text/css text/xml application/json tex
阅读全文
1.Nginx 配置 Basic 认证
摘要:环境:aliyun centos8 在 Nginx 下配置 Basic 认证需要依靠 Nginx 的 http_auth_basic_module 模块(官方文档:http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html) 配置过程:
阅读全文