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