Use shibboleth-sp as package name for compatibility.
[shibboleth/cpp-sp.git] / configs / apache24.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_24.so
14
15 #
16 # Turn this on to support "require valid-user" rules from other
17 # mod_authn_* modules, and use "require shib-session" for anonymous
18 # session-based authorization in mod_shib.
19 #
20 ShibCompatValidUser Off
21
22 #
23 # Ensures handler will be accessible.
24 #
25 <Location /Shibboleth.sso>
26   AuthType None
27   Require all granted
28 </Location>
29
30 #
31 # Used for example style sheet in error templates.
32 #
33 <IfModule mod_alias.c>
34   <Location /shibboleth-sp>
35     AuthType None
36     Require all granted
37   </Location>
38   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
39 </IfModule>
40
41 #
42 # Configure the module for content.
43 #
44 # You MUST enable AuthType shibboleth for the module to process
45 # any requests, and there MUST be a require command as well. To
46 # enable Shibboleth but not specify any session/access requirements
47 # use "require shibboleth".
48 #
49 <Location /secure>
50   AuthType shibboleth
51   ShibRequestSetting requireSession 1
52   require shib-session
53 </Location>