5475ed7000de492db3493e08a8b34f3b463b0d52
[shibboleth/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 # Used for example logo and style sheet in error templates.
17 #
18 <IfModule mod_alias.c>
19   <Location /shibboleth-sp>
20     Allow from all
21   </Location>
22   Alias /shibboleth-sp/main.css @-PKGWEBDIR-@/main.css
23   Alias /shibboleth-sp/logo.jpg @-PKGWEBDIR-@/logo.jpg
24 </IfModule>
25
26 #
27 # Configure the module for content.
28 #
29 # You MUST enable AuthType shibboleth for the module to process
30 # any requests, and there MUST be a require command as well. To
31 # enable Shibboleth but not specify any session/access requirements
32 # use "require shibboleth".
33 #
34 <Location /secure>
35   AuthType shibboleth
36   ShibRequestSetting requireSession 1
37   require valid-user
38 </Location>