Thanks. This is very informative. I was under the assumption that mod_auth_cas will understand only Location. Does this mean mod_auth_cas can act on Directory as well?
On Monday, December 3, 2018 at 3:53:28 PM UTC-8, dhawes wrote: > > The order of these directives matters. You may want to review: > > http://httpd.apache.org/docs/current/sections.html#merging > > We'd need more config to tell what's going on in your case. > On Fri, 30 Nov 2018 at 19:46, Shankaranand Bahushrutham > <[email protected] <javascript:>> wrote: > > > > > > I have 2 single page applications developed in angular 6. I want to > protect one of them with CAS and the other one should not be protected. In > apache webserver, i have them under htdocs folder with the name 'unsecured' > and 'secured'. Below is my mod_auth_cas configuration and it isn't working. > It protects fine if i give <Location ~ "index.html"> but the problem is > that it protects the unsecured app as well. > > > > <Location /secured> > > Authtype CAS > > require valid-user > > CASAuthNHeader sm_user > > CASScope /secured > > </Location> > > > > I have a rewrite rule to rewrite /* to /secured and another rule > /unsecured to /unsecured (this is placed above the /* so that unsecured > rule executes first) > > > > Please advise the right configuration > > > > -- > > - Website: https://apereo.github.io/cas > > - Gitter Chatroom: https://gitter.im/apereo/cas > > - List Guidelines: https://goo.gl/1VRrw7 > > - Contributions: https://goo.gl/mh7qDG > > --- > > You received this message because you are subscribed to the Google > Groups "CAS Community" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/56801da5-25b9-41e5-a94d-b788f4000626%40apereo.org. > > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/843e0e42-88f5-4654-9118-e90e81684311%40apereo.org.
