holystrike
V2EX  ›  问与答

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

  •  
  •   holystrike · Jul 15, 2014 · 2905 views
    This topic created in 4383 days ago, the information mentioned may be changed or developed.
    也就是:
    a.com 和 b.com 同时绑定至 /path/to/dir

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

    查了下文档,都是针对 <Directory> 去定义的,没有看见针对域名的
    1 replies    2014-07-15 15:06:45 +08:00
    fcitx
        1
    fcitx  
       Jul 15, 2014
    用多个virtualhost段?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3261 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 11:58 · PVG 19:58 · LAX 04:58 · JFK 07:58
    ♥ Do have faith in what you're doing.