744bc389453d52c8a1c268623e3b4310b60f64e7
[shibboleth/sp.git] / configs / apache22.config.in
1 # RPM installations on platforms with a conf.d directory will
2 # result in this file being copied into that directory for you.
3 # For non-RPM installs, you can add this file to your
4 # configuration using an Include command in httpd.conf
5
6 ######
7 ## SHIB Config
8 ######
9
10 #
11 # Load the SHIBBOLETH module
12 #
13 LoadModule mod_shib @-PKGLIBDIR-@/mod_shib_22.so
14
15 #
16 # Global Configuration
17 # This is the XML file that contains all the global, non-apache-specific
18 # configuration.  Look at this file for most of your configuration parameters.
19 #
20 ShibSchemaDir @-XMLTOOLINGXMLDIR-@/catalog.xml:@-OPENSAMLXMLDIR-@/saml20-catalog.xml:@-OPENSAMLXMLDIR-@/saml11-catalog.xml:@-PKGXMLDIR-@/catalog.xml
21 ShibConfig @-PKGSYSCONFDIR-@/shibboleth2.xml
22
23 #
24 # Used for example logo and style sheet in error templates.
25 #
26 <IfModule mod_alias.c>
27   <Location /shibboleth-sp>
28     Allow from all
29   </Location>
30   Alias /shibboleth-sp/main.css @-PKGDOCDIR-@/main.css
31   Alias /shibboleth-sp/logo.jpg @-PKGDOCDIR-@/logo.jpg
32 </IfModule>
33
34 #
35 # Configure the module for content
36 #
37 # You can now do most of this in shibboleth.xml using the RequestMap
38 # but you MUST enable AuthType shibboleth for the module to process
39 # any requests, and there MUST be a require command as well. To
40 # enable Shibboleth but not specify any session/access requirements
41 # use "require shibboleth".
42 #
43 <Location /secure>
44   AuthType shibboleth
45   ShibRequireSession On
46   require valid-user
47 </Location>