0ad730756bba209990397bd1cd35cb66b22eaddd
[shibboleth/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 logo and style sheet in error templates.
33 #
34 <IfModule mod_alias.c>
35   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
36   Alias /shibboleth-sp/logo.jpg @-PKGWEBDIR-@/logo.jpg
37 </IfModule>
38
39 #
40 # Configure the module for content.
41 #
42 # You MUST enable AuthType shibboleth for the module to process
43 # any requests, and there MUST be a require command as well. To
44 # enable Shibboleth but not specify any session/access requirements
45 # use "require shibboleth".
46 #
47 <Location /secure>
48   AuthType shibboleth
49   ShibRequestSetting requireSession 1
50   require valid-user
51 </Location>