[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf
raeburn
raeburn at source.lon-capa.org
Fri Dec 6 09:48:00 EST 2013
raeburn Fri Dec 6 14:48:00 2013 EDT
Modified files:
/loncom loncapa_apache.conf
Log:
- Support Apache 2.4 -- uses mod_authz_core.
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.225 loncom/loncapa_apache.conf:1.226
--- loncom/loncapa_apache.conf:1.225 Mon Jul 22 11:46:30 2013
+++ loncom/loncapa_apache.conf Fri Dec 6 14:48:00 2013
@@ -2,7 +2,7 @@
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
##
-# $Id: loncapa_apache.conf,v 1.225 2013/07/22 11:46:30 raeburn Exp $
+# $Id: loncapa_apache.conf,v 1.226 2013/12/06 14:48:00 raeburn Exp $
#
# LON-CAPA Section (extensions to httpd.conf daemon configuration)
@@ -1450,8 +1450,13 @@
<Directory />
Options None
AllowOverride None
-order deny,allow
-deny from all
+<IfModule mod_authz_core.c>
+ Require all denied
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order deny,allow
+ deny from all
+</IfModule>
</Directory>
# Allow uploaded files to be served
@@ -1459,8 +1464,13 @@
<Directory "/home/httpd/lonUsers">
Options Includes FollowSymLinks
AllowOverride None
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# Allow construction space files to be served
@@ -1468,8 +1478,13 @@
<Directory "/home/*/public_html/" >
Options Includes FollowSymLinks
AllowOverride
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# Yes to symbolic links and server-side includes
@@ -1477,8 +1492,13 @@
<Directory /home/httpd/html>
Options Includes FollowSymLinks
AllowOverride None
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# If it is in cgi-bin, then it can be executed as a CGI script.
@@ -1486,8 +1506,13 @@
<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI FollowSymLinks
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# Allow serving of files in prtspool
@@ -1495,8 +1520,13 @@
<Directory "/home/httpd/prtspool/">
Options Includes FollowSymLinks
AllowOverride None
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# Allow serving of files in zipspool
@@ -1504,8 +1534,13 @@
<Directory "/home/httpd/zipspool/">
Options Includes FollowSymLinks
AllowOverride None
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# Allow serving of files in captchaspool
@@ -1513,8 +1548,13 @@
<Directory "/home/httpd/captchaspool/">
Options Includes FollowSymLinks
AllowOverride None
-order allow,deny
-allow from all
+<IfModule mod_authz_core.c>
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ order allow,deny
+ allow from all
+</IfModule>
</Directory>
# ============================================================= Access Handlers
@@ -1535,10 +1575,15 @@
# ------------------- Allow access to local system documentation from localhost
Alias /doc /usr/doc
<Directory /usr/doc>
-order deny,allow
-deny from all
-allow from localhost
Options Indexes FollowSymLinks
+<IfModule mod_authz_host.c>
+ Require local
+</IfModule>
+<IfModule !mod_authz_host.c>
+ order deny,allow
+ deny from all
+ allow from localhost
+</IfModule>
</Directory>
# ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
More information about the LON-CAPA-cvs
mailing list