Added alias commands for css/logo
[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 @-PKGSYSCONFDIR-@
18 ShibConfig @-PKGSYSCONFDIR-@/shibboleth.xml
19
20 #
21 # A handler needs to be established for the SHIRE URL
22 # This matches up to the shireURL setting in shibboleth.xml
23 #
24 <Location /Shibboleth.shire>
25 SetHandler shib-shire-post
26 </Location>
27
28 #
29 # Used for example logo and style sheet in error templates.
30 #
31 <IfModule mod_alias.c>
32   Alias /shibtarget/main.css @-PREFIX-@/doc/shibboleth/main.css
33   Alias /shibtarget/logo.jpg @-PREFIX-@/doc/shibboleth/logo.jpg
34 </IfModule>
35
36 #
37 # Configure the module for content
38 #
39 # You can now do most of this in shibboleth.xml using the RequestMap
40 # but you MUST enable AuthType shibboleth for the module to process
41 # any requests, and there MUST be a require command as well. To
42 # enable Shibboleth but not specify any session/access requirement
43 # use "require Shibboleth".
44 #
45 <Location /secure>
46   AuthType shibboleth
47   ShibRequireSession On
48   require valid-user
49 </Location>