998c8644b3e29d8f64a5b25b1793cd5b1dab910a
[shibboleth/cpp-sp.git] / configs / apache.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_13.so
14
15 #
16 # An Apache handler needs to be established for the "handler" location.
17 # This applies the handler to any requests for a resource with a ".sso"
18 # extension.
19 #
20 <Files *.sso>
21   SetHandler shib-handler
22 </Files>
23
24 #
25 # Ensures handler will be accessible.
26 #
27 <Location /Shibboleth.sso>
28   Satisfy Any
29   Allow from all
30   AuthType None
31   Require all granted
32 </Location>
33
34 #
35 # Used for example style sheet in error templates.
36 #
37 <IfModule mod_alias.c>
38   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
39   <Location /shibboleth-sp>
40     Satisfy Any
41     Allow from all
42     AuthType None
43     Require all granted
44   </Location>
45 </IfModule>
46
47 #
48 # Configure the module for content.
49 #
50 # You MUST enable AuthType shibboleth for the module to process
51 # any requests, and there MUST be a require command as well. To
52 # enable Shibboleth but not specify any session/access requirements
53 # use "require shibboleth".
54 #
55 <Location /secure>
56   AuthType shibboleth
57   ShibRequestSetting requireSession 1
58   require valid-user
59 </Location>