[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf

raeburn raeburn at source.lon-capa.org
Sat Oct 2 09:54:29 EDT 2021


raeburn		Sat Oct  2 13:54:29 2021 EDT

  Modified files:              
    /loncom	loncapa_apache.conf 
  Log:
  - For SAML authentication (Shibboleth) no caching of /adm/sso. Specify custom
    error pages for 403 and 500 errors.
  
  
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.275 loncom/loncapa_apache.conf:1.276
--- loncom/loncapa_apache.conf:1.275	Wed Aug  4 19:59:11 2021
+++ loncom/loncapa_apache.conf	Sat Oct  2 13:54:29 2021
@@ -2,7 +2,7 @@
 ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
 ##
 
-# $Id: loncapa_apache.conf,v 1.275 2021/08/04 19:59:11 raeburn Exp $
+# $Id: loncapa_apache.conf,v 1.276 2021/10/02 13:54:29 raeburn Exp $
 
 #
 # LON-CAPA Section (extensions to httpd.conf daemon configuration)
@@ -858,6 +858,7 @@
 </Location>
 
 <Location /adm/sso>
+  Header set Cache-Control "private,no-store,no-cache,max-age=0"
   <IfModule mod_shib>
     AuthType shibboleth
     ShibUseEnvironment On
@@ -866,6 +867,8 @@
     require valid-user
     PerlAuthzHandler       Apache::lonshibacc
     PerlAuthzHandler       Apache::lonacc
+    ErrorDocument     403 /adm/login
+    ErrorDocument     500 /adm/errorhandler
   </IfModule>
   <IfModule !mod_shib>
     PerlTypeHandler        Apache::lonnoshib




More information about the LON-CAPA-cvs mailing list