远山的树懒 2015-09-14 07:58 采纳率: 0%
浏览 1876

mini_httpd服务器访问控制问题

我的mini_httpd安装后,在要访问的页面下放了一个.htpasswd文件,然后在浏览器

中输入服务器地址192.168.1.1后可以出现一个验证身份的对话框,但是我如果输入该文件
夹下的其他文件地址怎么没有验证就能显示出来;
另外,怎么通过输入一个地址如192.168.1.1跳过首页直接访问cgi程序

  • 写回答

1条回答 默认 最新

  • oyljerry 2015-09-14 08:36
    关注

    Basic Authentication uses a password file called ".htpasswd", in the directory to be protected. This file is formatted as the familiar colon-separated username/encrypted-password pair, records delimited by newlines. The protection does not carry over to subdirectories. The utility program htpasswd(1) is included to help create and modify .htpasswd files.

    http://dev.man-online.org/man8/mini-httpd/

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题