摘要:
/etc/nginx/nginx.conf中 http {...... log_format main '$remote_addr - $remote_user [$time_iso8601] "$request" ' '$status $body_bytes_sent "$http_referer 阅读全文
摘要:
基于用户_明文传输http 工具安装,yum install -y httpd-tools 设置用户名和密码htpasswd -b -c /etc/nginx/.auth.conf testnginx 123456 /etc/nginx/conf.d/default.conf中在监控部分添加 loc 阅读全文
摘要:
egrep -v '#|^$' /etc/nginx/conf.d/default.off > /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf 中 目录索引 location /download { #相对根目录下的down 阅读全文
摘要:
临时关闭setenforce 0 阅读全文
摘要:
nginx官网右侧download-->Pre-Built Packages栏目中点stable and mainline 改/etc/yum.repos.d/nginx.repo [nginx-stable]name=nginx stable repobaseurl=http://nginx.or 阅读全文