[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf
banghart
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 26 Apr 2007 00:59:32 -0000
banghart Wed Apr 25 20:59:32 2007 EDT
Modified files:
/loncom loncapa_apache.conf
Log:
Add location, alias, and serve access to zipspool directory.
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.166 loncom/loncapa_apache.conf:1.167
--- loncom/loncapa_apache.conf:1.166 Fri Apr 20 17:11:03 2007
+++ loncom/loncapa_apache.conf Wed Apr 25 20:59:32 2007
@@ -1,7 +1,7 @@
##
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
##
-## $Id: loncapa_apache.conf,v 1.166 2007/04/20 21:11:03 banghart Exp $
+## $Id: loncapa_apache.conf,v 1.167 2007/04/26 00:59:32 banghart Exp $
##
#
@@ -35,6 +35,7 @@
#
# ===================================================================== Aliases
+Alias /zipspool/ /home/httpd/zipspool/
Alias /prtspool/ /home/httpd/prtspool/
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
@@ -276,6 +277,17 @@
ErrorDocument 413 /adm/overloaded.txt
ErrorDocument 500 /adm/errorhandler
</LocationMatch>
+
+<LocationMatch "/zipspool">
+AuthType LONCAPA
+Require valid-user
+PerlAuthzHandler Apache::lonacc
+ErrorDocument 403 /adm/login
+ErrorDocument 404 /adm/notfound.html
+ErrorDocument 406 /adm/roles
+ErrorDocument 413 /adm/overloaded.txt
+ErrorDocument 500 /adm/errorhandler
+</LocationMatch>
# ------------------------------------------------------------------------- RAT
<LocationMatch "^/\~.*\.sequence$">
@@ -1327,6 +1339,15 @@
allow from all
</Directory>
+# Allow serving of files in zipspool
+
+<Directory "/home/httpd/zipspool/">
+Options Includes FollowSymLinks
+AllowOverride None
+order allow,deny
+allow from all
+</Directory>
+
# ============================================================= Access Handlers
# ------------------------------------------------- Allow server-status reports