V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
holystrike
V2EX  ›  问与答

问一下 Apache 启用 HTTP Authentication 的问题。同一目录,绑定多个域名,如何让其中一个域名使用 HTTP Authentication,而另一个不使用。

  •  
  •   holystrike · 2014-07-15 12:01:47 +08:00 · 2388 次点击
    这是一个创建于 3566 天前的主题,其中的信息可能已经有所发展或是发生改变。
    也就是:
    a.com 和 b.com 同时绑定至 /path/to/dir

    打开 a.com 时,出现 http authentication 的用户名和密码输入框,
    而打开 b.com 时就不需要用户名和密码

    查了下文档,都是针对 <Directory> 去定义的,没有看见针对域名的
    1 条回复    2014-07-15 15:06:45 +08:00
    fcitx
        1
    fcitx  
       2014-07-15 15:06:45 +08:00
    用多个virtualhost段?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2395 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:04 · PVG 09:04 · LAX 18:04 · JFK 21:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.