Add an apache2 configuration sample
authorDerek Atkins <derek@ihtfp.com>
Mon, 3 Nov 2003 19:24:43 +0000 (19:24 +0000)
committerDerek Atkins <derek@ihtfp.com>
Mon, 3 Nov 2003 19:24:43 +0000 (19:24 +0000)
configs/Makefile.am
configs/apache2.config [new file with mode: 0644]

index 5a66357..c0d8edb 100644 (file)
@@ -9,6 +9,7 @@ pkgsysconf_DATA = \
        shire.logger \
        shar.logger \
        apache.config \
+       apache2.config \
        accessError.html \
        rmError.html \
        shireError.html \
@@ -16,4 +17,3 @@ pkgsysconf_DATA = \
        sites.xml \
        trust.xml \
        creds.xml
-       
\ No newline at end of file
diff --git a/configs/apache2.config b/configs/apache2.config
new file mode 100644 (file)
index 0000000..ee373bd
--- /dev/null
@@ -0,0 +1,52 @@
+# ADD THIS TO THE END OF YOUR APACHE'S HTTPD.CONF
+
+######
+## SHIB Config
+######
+
+#
+# Load the Apache Request module and then the SHIBBOLETH module
+# Note that ORDER MATTERS!  Apache runs the modules in the
+# _reverse_ order that modules were loaded.  The Shib module
+# depends on the Apreq module, so you need this load-order
+# to make sure they are run properly.
+#
+# If you see log messages about missing apreq symbols then you
+# have messed this up.
+#
+LoadModule apreq_module /opt/shibboleth/libexec/mod_apreq.so
+LoadModule mod_shib /opt/shibboleth/libexec/mod_shib.so
+
+#
+# Global SHIRE Configuration
+# This is the INI file that contains all the global, non-apache-specific
+# configuration.  Look at this file for most of your configuration
+# parameters.
+#
+SHIBConfig /opt/shibboleth/etc/shibboleth/shibboleth.ini
+
+#
+# Configure a test directory
+#
+# You need _at least_ a "require" option for Shib to take effect for this
+# directory.  You can either set the AuthType to "shibboleth", or you can
+# turn on ShibBasicHijack. For Shib, valid-user is a somewhat vague concept
+# and only means that a trusted origin site has authenticated the user, but
+# doesn't mean that any attributes were received.
+#
+<Location /secure>
+  AuthType shibboleth
+  require affiliation ~ ^member@.+$
+  # require valid-user
+
+  # Per-directory SHIRE Configuration
+  #ShibBasicHijack On
+  #ShibSSLOnly On
+  #ShibAuthLifetime 14400
+  #ShibAuthTimeout 3600
+
+  # RM Configuration
+  #DisableRM On
+  #AuthGroupFile /foo
+  #ShibExportAssertion On
+</Location>