[MKDoc-commit] Location stuff for users interface changed to allow custom error

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Wed May 4 15:09:10 BST 2005


Log Message:
-----------
Location stuff for users interface changed to allow custom error documents to work

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/tools:
        install-details-gt.pl

-------------- next part --------------
Index: install-details-gt.pl
===================================================================
RCS file: /var/spool/cvs/mkd/tools/install-details-gt.pl,v
retrieving revision 1.21.2.31
retrieving revision 1.21.2.32
diff -Ltools/install-details-gt.pl -Ltools/install-details-gt.pl -u -r1.21.2.31 -r1.21.2.32
--- tools/install-details-gt.pl
+++ tools/install-details-gt.pl
@@ -417,14 +417,36 @@
     Redirect /.perl-status http://users.$domain_name/.perl-status
     Redirect /.logs http://users.$domain_name/.logs
 $alias
-    <Location />
-      PerlModule MKDoc::Handler::GroupAuthz
-      PerlAuthenHandler MKDoc::Handler::GroupAuthz->null_authen_handler
+    # This commented out config prevents error documents working for the user interface
+    #<Location />
+    #  PerlModule MKDoc::Handler::GroupAuthz
+    #  PerlAuthenHandler MKDoc::Handler::GroupAuthz->null_authen_handler
+    #  PerlAuthzHandler  MKDoc::Handler::GroupAuthz
+    #  AuthName "Group Authorization"
+    #  AuthType GroupAuthz
+    #  require valid-group
+    #</Location>
+    <LocationMatch ^\/\$>
+      PerlAuthenHandler MKDoc::Handler::Authenticate
       PerlAuthzHandler  MKDoc::Handler::GroupAuthz
-      AuthName "Group Authorization"
-      AuthType GroupAuthz
-      require valid-group
-    </Location>
+      AuthName "Please enter your user credentials"
+      AuthType Basic
+      require valid-user
+    </LocationMatch>
+    <LocationMatch ^\/[a-zA-Z0-9]>
+      PerlAuthenHandler MKDoc::Handler::Authenticate
+      PerlAuthzHandler  MKDoc::Handler::GroupAuthz
+      AuthName "Please enter your user credentials"
+      AuthType Basic
+      require valid-user
+    </LocationMatch>
+    <LocationMatch ^\/\.(account|admin|sitemap|print|headlines|meta|search)>
+      PerlAuthenHandler MKDoc::Handler::Authenticate
+      PerlAuthzHandler  MKDoc::Handler::GroupAuthz
+      AuthName "Please enter your user credentials"
+      AuthType Basic
+      require valid-user
+    </LocationMatch>
 </VirtualHost>
 
 <VirtualHost *>


More information about the MKDoc-commit mailing list