4232d86d6c46b84e282550bc47a84c9471840dbc
[shibboleth/cpp-sp.git] / configs / apache2.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_20.so
14
15 #
16 # Used for example 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 </IfModule>
24
25 #
26 # Configure the module for content.
27 #
28 # You MUST enable AuthType shibboleth for the module to process
29 # any requests, and there MUST be a require command as well. To
30 # enable Shibboleth but not specify any session/access requirements
31 # use "require shibboleth".
32 #
33 <Location /secure>
34   AuthType shibboleth
35   ShibRequestSetting requireSession 1
36   require valid-user
37 </Location>