80.nginx文件存储

发表于 linux 分类,标签:
yuminstall-yhttpd-toolshtpasswd-cb/etc/nginx/htpasswdmynginx123456auth_basic"Pleaseentertheusernameandpassword";#这里是验证时的提示信息auth_basic_user_file/etc/nginx/htpasswd;location/{  if($request_filename~*^.*?\.(txt|pdf|doc|xls)$){  add_headerContent-Disposition:'attachment;';}  auth_basic"Pleaseentertheusernameandpa...