faith丶

导航

2020年9月24日 #

nginx 配置文件下载服务

摘要: 1.创建存放下载文件目录,传入文件 # 注释:nginx服务为yum安装 [root@nginx ~]# mkdir /etc/nginx/downloadFile [root@nginx ~]# ll /etc/nginx/downloadFile/ total 32 -rw-r--r-- 1 r 阅读全文

posted @ 2020-09-24 16:18 faith丶 阅读(2779) 评论(0) 推荐(0) 编辑

nginx 配置访问认证

摘要: 1.创建密码认证文件并进行授权 1)创建密码文件yum install httpd-tools -y htpasswd -bc /etc/nginx/htpasswd yiheng 123456 2)授权密码文件(属主属组与nginx启动用户一致即可) chmod 400 /etc/nginx/ht 阅读全文

posted @ 2020-09-24 16:06 faith丶 阅读(347) 评论(0) 推荐(0) 编辑