Another correction to older Apache configs
[shibboleth/cpp-sp.git] / configs / apache2.config.in
1 # https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig
2
3 # RPM installations on platforms with a conf.d directory will
4 # result in this file being copied into that directory for you
5 # and preserved across upgrades.
6
7 # For non-RPM installs, you should copy the relevant contents of
8 # this file to a configuration location you control.
9
10 #
11 # Load the Shibboleth module.
12 #
13 LoadModule mod_shib @-PKGLIBDIR-@/mod_shib_20.so
14
15 #
16 # Ensures handler will be accessible.
17 #
18 <Location /Shibboleth.sso>
19   Satisfy Any
20   Allow from all
21 </Location>
22
23 #
24 # Used for example style sheet in error templates.
25 #
26 <IfModule mod_alias.c>
27   <Location /shibboleth-sp>
28     Satisfy Any
29     Allow from all
30   </Location>
31   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
32 </IfModule>
33
34 #
35 # Configure the module for content.
36 #
37 # You MUST enable AuthType shibboleth for the module to process
38 # any requests, and there MUST be a require command as well. To
39 # enable Shibboleth but not specify any session/access requirements
40 # use "require shibboleth".
41 #
42 <Location /secure>
43   AuthType shibboleth
44   ShibRequestSetting requireSession 1
45   require valid-user
46 </Location>