Build the config files at compile-time; this will let us stop hard-coding
[shibboleth/cpp-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 Resource Manager and SHIRE modules.
9 # Note that ORDER MATTERS!  Apache runs the modules in the
10 # _reverse_ order that modules were loaded.  The RM module
11 # depends on the Shire module, so you need this load-order
12 # to make sure they are run properly.
13 #
14 # If you see log messages about "NOOP" configurations, then you
15 # have messed this up.
16 #
17 LoadModule shibrm_module /opt/shibboleth/libexec/mod_shibrm.so
18 LoadModule shire_module /opt/shibboleth/libexec/mod_shire.so
19
20 #
21 # Global SHIRE Configuration
22 # This is the INI file that contains all the global, non-apache-specific
23 # configuration.  Look at this file for most of your configuration
24 # parameters.
25 #
26 SHIREConfig /opt/shibboleth/etc/shibboleth/shibboleth.ini
27
28 #
29 # The SHIRE POST processor URL
30 # Most of the time, this should be a path only, so that the schema,
31 # host, and port will determined dynamically in each virtual host.  If
32 # for some reason the dynamically derived URL is not appropriate, a
33 # complete URL can be used, and may be set per-vhost explicitly:
34 # SHIREURL https://<server-name>/SHIRE
35 #
36 # The SHIREURL and subsequent "Location" handler must match.
37 #
38 SHIREURL /SHIRE
39 <Location /SHIRE>
40   SetHandler shib-shire-post
41 </Location>
42
43 #
44 # Configure a test directory
45 #
46 # You need _at least_ a "require" option for Shib to take effect for this
47 # directory.  You can either set the AuthType to "shibboleth", or you can
48 # turn on ShibBasicHijack. For Shib, valid-user is a somewhat vague concept
49 # and only means that a trusted origin site has authenticated the user, but
50 # doesn't mean that any attributes were received.
51 #
52 <Location /secure>
53   AuthType shibboleth
54   require affiliation ~ ^member@.+$
55   # require valid-user
56
57   # Per-directory SHIRE Configuration
58   #ShibBasicHijack On
59   #ShibSSLOnly On
60   #ShibAuthLifetime 14400
61   #ShibAuthTimeout 3600
62
63   # RM Configuration
64   #AuthGroupFile /foo
65   #ShibExportAssertion On
66 </Location>