Relocate XML schemas to share/xml/shibboleth
[shibboleth/sp.git] / configs / apache.config.in
1 # ADD THIS TO THE END OF YOUR APACHE'S HTTPD.CONF
2
3 ######
4 ## SHIB Config
5 ######
6
7 #
8 # Load the Shibboleth module.
9 #
10 LoadModule mod_shib @-LIBEXECDIR-@/mod_shib_13.so
11
12 #
13 # Global Configuration
14 # This is the XML file that contains all the global, non-apache-specific
15 # configuration.  Look at this file for most of your configuration parameters.
16 #
17 ShibSchemaDir @-PKGXMLDIR-@
18 ShibConfig @-PKGSYSCONFDIR-@/shibboleth.xml
19
20 #
21 # A handler needs to be established for the SHIRE URL
22 # This applies the handler to any documents with a "shire" extension
23 #
24 <Files *.shire>
25 SetHandler shib-shire-post
26 </Files>
27 #
28 # Another way of addressing this is to apply Shibboleth
29 # globally to the site in "lazy" session mode:
30 # <Location />
31 # AuthType shibboleth
32 # require shibboleth
33 # </Location>
34
35 #
36 # Used for example logo and style sheet in error templates.
37 #
38 <IfModule mod_alias.c>
39   Alias /shibtarget/main.css @-PREFIX-@/doc/shibboleth/main.css
40   Alias /shibtarget/logo.jpg @-PREFIX-@/doc/shibboleth/logo.jpg
41 </IfModule>
42
43 #
44 # Configure the module for content
45 #
46 # You can now do most of this in shibboleth.xml using the RequestMap
47 # but you MUST enable AuthType shibboleth for the module to process
48 # any requests, and there MUST be a require command as well. To
49 # enable Shibboleth but not specify any session/access requirement
50 # use "require Shibboleth".
51 #
52 <Location /secure>
53   AuthType shibboleth
54   ShibRequireSession On
55   require valid-user
56 </Location>