commonhub
V2EX  ›  问与答

Apache 怎样配置使得访问首页不需要验证?

  •  
  •   commonhub · Jul 1, 2016 · 2036 views
    This topic created in 3631 days ago, the information mentioned may be changed or developed.
    apache2.2 ,配置了 CAS 单点登录系统,这样访问任何页面都会被跳转到 sso 的认证页面上,问题是,怎样使得访问主页( i.e.直接输入域名)时不需要认证呢?
    因为首页就是 Index.html ,也试过用 location, locationmatch, directory 来做过匹配,结果是访问 somewebsite.com/index.html 不需要认证了,但是输入 somewebsite.com 的时候仍然被重定向到登录页。

    另外,对于有些需要在未登录状态下引用的 js 和 css 文件,应该怎么样布置文件结构比较方便呢?是一份公用 css+一份私有 css ,或者只保留一份然后开放权限呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 14:14 · PVG 22:14 · LAX 07:14 · JFK 10:14
    ♥ Do have faith in what you're doing.