ce3422ea4ffa75f742d539aff691766415346efd
[shibboleth/sp.git] / configs / apache.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_13.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 # An Apache handler needs to be established for the "handler" location.
25 # This applies the handler to any requests for a resource with a ".sso"
26 # extension.
27 #
28 <Files *.sso>
29 SetHandler shib-handler
30 </Files>
31 #
32 # Another way of addressing this is to apply Shibboleth
33 # globally to the site in "lazy" session mode:
34 # <Location />
35 # AuthType shibboleth
36 # require shibboleth
37 # </Location>
38
39 #
40 # Used for example logo and style sheet in error templates.
41 #
42 <IfModule mod_alias.c>
43   Alias /shibboleth-sp/main.css @-PKGDOCDIR-@/main.css
44   Alias /shibboleth-sp/logo.jpg @-PKGDOCDIR-@/logo.jpg
45 </IfModule>
46
47 #
48 # Configure the module for content
49 #
50 # You can now do most of this in shibboleth.xml using the RequestMap
51 # but you MUST enable AuthType shibboleth for the module to process
52 # any requests, and there MUST be a require command as well. To
53 # enable Shibboleth but not specify any session/access requirements
54 # use "require shibboleth".
55 #
56 <Location /secure>
57   AuthType shibboleth
58   ShibRequireSession On
59   require valid-user
60 </Location>