vim /etc/nginx/conf.d/default.conf
8 location / {
9 root /usr/share/nginx/html;
10 index index.html index.htm;
11
12 # #proxy_pass http://up_tip/;
13 # add_header Cache-Control 'no-store';
14 # # anti Clickjacking
15 # add_header X-Frame-Options "SAMEORIGIN";
16 #
17 # try_files $uri $uri/ /index.html;
18 # auth_basic "Restricted Area, Please authoricate yourself.";
19 # auth_basic_user_file /etc/nginx/conf.d/htppwasswd;
20 # autoindex off;
21
22 }
23
vim /etc/nginx/conf.d/htppwasswd
${name}:${passwd}
nginx -s reload 就ok了
没有评论:
发表评论