--- loncom/loncapa_apache.conf 2016/10/23 18:50:10 1.215.2.18 +++ loncom/loncapa_apache.conf 2019/07/28 15:26:07 1.215.2.23 @@ -2,7 +2,7 @@ ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file ## -# $Id: loncapa_apache.conf,v 1.215.2.18 2016/10/23 18:50:10 raeburn Exp $ +# $Id: loncapa_apache.conf,v 1.215.2.23 2019/07/28 15:26:07 raeburn Exp $ # # LON-CAPA Section (extensions to httpd.conf daemon configuration) @@ -707,6 +707,16 @@ ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler + +AuthType LONCAPA +Require valid-user +PerlAuthzHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::admannotations +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler + + AuthType LONCAPA Require valid-user @@ -1302,6 +1312,7 @@ PerlHandler Apache::groupsort PerlCleanupHandler Apache::groupsort::cleanup PerlCleanupHandler Apache::lonacc::cleanup ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler @@ -1463,7 +1474,7 @@ AllowOverride None # Allow uploaded files to be served -Options Includes FollowSymLinks +Options FollowSymLinks AllowOverride None Require all granted @@ -1474,24 +1485,10 @@ AllowOverride None -# Allow construction space files to be served - - -Options Includes FollowSymLinks -AllowOverride - - Require all granted - - - order allow,deny - allow from all - - - # Yes to symbolic links and server-side includes -Options Includes FollowSymLinks +Options FollowSymLinks AllowOverride None Require all granted @@ -1519,7 +1516,7 @@ Options ExecCGI FollowSymLinks # Allow serving of files in prtspool -Options Includes FollowSymLinks +Options FollowSymLinks AllowOverride None Require all granted @@ -1533,7 +1530,7 @@ AllowOverride None # Allow serving of files in zipspool -Options Includes FollowSymLinks +Options FollowSymLinks AllowOverride None Require all granted @@ -1547,7 +1544,7 @@ AllowOverride None # Allow serving of files in captchaspool -Options Includes FollowSymLinks +Options FollowSymLinks AllowOverride None Require all granted