Another correction to older Apache configs
[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 </Location>
31
32 #
33 # Used for example style sheet in error templates.
34 #
35 <IfModule mod_alias.c>
36   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
37   <Location /shibboleth-sp>
38     Satisfy Any
39     Allow from all
40   </Location>
41 </IfModule>
42
43 #
44 # Configure the module for content.
45 #
46 # You MUST enable AuthType shibboleth for the module to process
47 # any requests, and there MUST be a require command as well. To
48 # enable Shibboleth but not specify any session/access requirements
49 # use "require shibboleth".
50 #
51 <Location /secure>
52   AuthType shibboleth
53   ShibRequestSetting requireSession 1
54   require valid-user
55 </Location>