Re: how many <Location> directives can you have?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/03/2011 02:32 PM, Tommy Peterson wrote:
Yes. Here is what I had to start with

Please don't top-post.

<LocationMatch "/drupal/online-courses\?id=\d">
   AuthType shibboleth
   ShibRequireSession On
   ShibUseHeaders On
   require shibboleth
</LocationMatch>


LocationMatch cannot match a query string, you need a rewriterule for that.
From the documentation:

For all origin (non-proxy) requests, the URL to be matched is a URL-path of the form /path/. No scheme, hostname, port, or query string may be included.

<Location /drupal/user>
  AuthType shibboleth
   ShibRequireSession On
   ShibUseHeaders On
   require shibboleth
</Location>


If any of these ALSO have a physical directory, the result is less clear-cut.

Authentication should be performed on physical directories whenever possible.


-- 
J.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux