54d64b69c2a47ba84747abbb34a1eb51160d2a29
[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 # Another way of addressing this is to apply Shibboleth
25 # globally to the site in "lazy" session mode:
26 # <Location />
27 # AuthType shibboleth
28 # require shibboleth
29 # </Location>
30
31 #
32 # Used for example style sheet in error templates.
33 #
34 <IfModule mod_alias.c>
35   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
36 </IfModule>
37
38 #
39 # Configure the module for content.
40 #
41 # You MUST enable AuthType shibboleth for the module to process
42 # any requests, and there MUST be a require command as well. To
43 # enable Shibboleth but not specify any session/access requirements
44 # use "require shibboleth".
45 #
46 <Location /secure>
47   AuthType shibboleth
48   ShibRequestSetting requireSession 1
49   require valid-user
50 </Location>