I'm reading that <Location '/'> actually matches the entire domain, not just the root location. I want to create a Location or LocationMatch block that matches everything but http://my.domain.com/ This means it will trigger if any characters follow that final '/
Here is how I will be testing this:
<LocationMatch "REGEX GOES HERE">
AuthType Shibboleth
ShibRequireSession On
Require Shibboleth
</LocationMatch>
I think Shibboleth may change some behavior. Also note I am using Apache 2.2 but a solution that works on 2.4 will suffice as well.
You can use
LocationMatchwith this regex:Single DOT after
^/will make sure there is at least one character afterhttp://my.domain.com/hence causing it to not to match landing page.More details about
LocationMatchTesting:
Create this directive as:
Now to test I am doing this:
You can clearly see that
wwwredirection doesn't happen when I request landing page but happens when I request/index.php