Annotation of loncom/loncapa_apache.conf, revision 1.252
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.222 raeburn 4:
1.252 ! damieng 5: # $Id: loncapa_apache.conf,v 1.251 2016/11/30 01:32:27 raeburn Exp $
1.1 harris41 6:
7: #
8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
9: #
1.8 harris41 10: # ================================================================ DocumentRoot
1.1 harris41 11:
12: DocumentRoot "/home/httpd/html"
13:
14: # ======================================================================== User
15:
16: User www
17: Group www
18:
19: # ======================================================= Shared Object Modules
20:
1.223 raeburn 21: <IfModule !perl_module>
22: LoadModule perl_module modules/libperl.so
23: </IfModule>
1.47 albertel 24: <IfDefine !MODPERL2>
1.1 harris41 25: AddModule mod_perl.c
1.47 albertel 26: </IfDefine>
1.1 harris41 27:
1.63 albertel 28: <IfDefine MODPERL2>
29: PerlSetVar MODPERL2 1
30: </IfDefine>
1.1 harris41 31: # =============================================================== Miscellaneous
32:
1.229 raeburn 33: ServerAdmin consortium@loncapa.org
1.1 harris41 34: ExtendedStatus On
35: #
36: # LON-CAPA Section (extensions to srm.conf name space servicing)
37: #
38: # ===================================================================== Aliases
39:
1.167 banghart 40: Alias /zipspool/ /home/httpd/zipspool/
1.1 harris41 41: Alias /prtspool/ /home/httpd/prtspool/
1.177 raeburn 42: Alias /captchaspool/ /home/httpd/captchaspool/
1.210 raeburn 43: Alias /webdav/ /home/httpd/html/priv/
1.8 harris41 44: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.214 raeburn 45: <IfModule mod_dav_fs.c>
46: DAVLockDB /home/httpd/webdav/DAVLock
47: </IfModule>
1.1 harris41 48:
49: # ================================================================= Directories
50:
51: # ------------------------------------------------------------- Access Handlers
52:
1.12 www 53: PerlTransHandler Apache::lontrans
1.129 albertel 54: PerlCleanupHandler Apache::lonacc::cleanup
1.12 www 55:
1.125 albertel 56: PerlAuthenHandler Apache::checkauthen
57: PerlSetVar lonOtherAuthen no
58:
1.212 raeburn 59: <IfModule mod_shib>
60: PerlAuthenHandler Apache::lonshibauth
61: PerlSetVar lonOtherAuthen yes
62: PerlSetVar lonOtherAuthenType Shibboleth
63: </IfModule>
64:
1.45 albertel 65: #PerlWarn On
1.183 raeburn 66: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
1.228 raeburn 67: PerlAuthzHandler 'sub { return OK }'
1.183 raeburn 68: </LocationMatch>
69:
1.191 droeschl 70: # Send proper expires header to avoid unnecessary HTTP request for static content
1.241 raeburn 71: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)">
1.191 droeschl 72: ExpiresActive On
73: ExpiresDefault "access plus 12 hours"
1.199 raeburn 74: Header set Cache-Control "public, no-transform"
1.191 droeschl 75: </LocationMatch>
76:
1.21 www 77: <LocationMatch "^/+res.*">
1.125 albertel 78:
1.139 albertel 79: AuthType LONCAPA
1.125 albertel 80: Require valid-user
81:
82: PerlAccessHandler Apache::publiccheck
83: PerlAuthzHandler Apache::lonacc
1.1 harris41 84: PerlHeaderParserHandler Apache::lonrep
85: ErrorDocument 403 /adm/login
86: ErrorDocument 404 /adm/notfound.html
87: ErrorDocument 406 /adm/roles
1.74 www 88: ErrorDocument 500 /adm/errorhandler
89: </LocationMatch>
90:
1.125 albertel 91:
92: <LocationMatch "/.*">
93: </LocationMatch>
94:
95:
1.74 www 96: <LocationMatch "^/+enc.*">
1.115 raeburn 97: SetHandler perl-script
1.127 albertel 98: PerlHandler Apache::lonencurl
1.74 www 99: ErrorDocument 403 /adm/login
1.80 albertel 100: ErrorDocument 404 /adm/notfound.html
101: ErrorDocument 406 /adm/roles
1.11 www 102: ErrorDocument 500 /adm/errorhandler
103: </LocationMatch>
104:
1.84 banghart 105: <Location /adm/portfolio>
1.139 albertel 106: AuthType LONCAPA
1.125 albertel 107: Require valid-user
108: PerlAuthzHandler Apache::lonacc
1.123 raeburn 109: SetHandler perl-script
1.126 albertel 110: PerlHandler Apache::portfolio
1.123 raeburn 111: </Location>
112:
1.136 raeburn 113: <Location /adm/coursegrp_portfolio>
1.139 albertel 114: AuthType LONCAPA
1.136 raeburn 115: Require valid-user
116: PerlAuthzHandler Apache::lonacc
117: SetHandler perl-script
118: PerlHandler Apache::portfolio
119: </Location>
120:
1.195 raeburn 121: <Location /adm/pdfupload>
122: AuthType LONCAPA
123: Require valid-user
124: PerlAuthzHandler Apache::lonacc
125: SetHandler perl-script
126: PerlHandler Apache::lonpdfupload
127: ErrorDocument 403 /adm/login
128: ErrorDocument 404 /adm/notfound.html
129: ErrorDocument 406 /adm/roles
130: ErrorDocument 500 /adm/errorhandler
131: </Location>
132:
1.21 www 133: <LocationMatch "^/+userfiles.*">
1.11 www 134: PerlAccessHandler Apache::lontokacc
1.58 www 135: PerlCleanupHandler Apache::lontokacc::removefile
1.129 albertel 136: PerlCleanupHandler Apache::lonacc::cleanup
1.12 www 137: </LocationMatch>
138:
1.76 albertel 139: <LocationMatch "^/+uploaded.*">
1.139 albertel 140: AuthType LONCAPA
1.125 albertel 141: Require valid-user
142: PerlAuthzHandler Apache::lonacc
1.178 raeburn 143: PerlHandler Apache::londatecheck
144: PerlHandler Apache::lonipcheck
1.75 raeburn 145: PerlHeaderParserHandler Apache::lonuploadrep
1.80 albertel 146: ErrorDocument 403 /adm/login
1.16 www 147: ErrorDocument 404 /adm/notfound.html
1.80 albertel 148: ErrorDocument 406 /adm/roles
1.16 www 149: ErrorDocument 500 /adm/errorhandler
1.75 raeburn 150: </LocationMatch>
151:
1.106 albertel 152: <LocationMatch "^/+editupload.*">
1.139 albertel 153: AuthType LONCAPA
1.125 albertel 154: Require valid-user
155: PerlAuthzHandler Apache::lonacc
1.106 albertel 156: ErrorDocument 403 /adm/login
157: ErrorDocument 406 /adm/roles
158: ErrorDocument 500 /adm/errorhandler
159: </LocationMatch>
160:
1.98 albertel 161: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
1.150 albertel 162: PerlAuthenHandler Apache::lonuploadedacc
163: PerlAuthzHandler Apache::lonuploadedacc::skip_phase
1.151 albertel 164: PerlAccessHandler Apache::lonuploadedacc::skip_phase
1.98 albertel 165: </LocationMatch>
166:
1.140 raeburn 167: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
168: PerlAccessHandler Apache::publiccheck
1.141 albertel 169: AuthType LONCAPA
1.140 raeburn 170: Require valid-user
171: PerlAuthzHandler Apache::lonacc
172: </LocationMatch>
173:
174: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
175: PerlAccessHandler Apache::publiccheck
1.141 albertel 176: AuthType LONCAPA
1.140 raeburn 177: Require valid-user
178: PerlAuthzHandler Apache::lonacc
179: </LocationMatch>
1.98 albertel 180:
1.76 albertel 181: <LocationMatch "^/+uploaded/.*\.page$">
1.75 raeburn 182: SetHandler perl-script
1.126 albertel 183: PerlHandler Apache::lonpage
1.75 raeburn 184: </LocationMatch>
185:
1.76 albertel 186: <LocationMatch "^/+uploaded/.*\.sequence$">
1.75 raeburn 187: SetHandler perl-script
1.126 albertel 188: PerlHandler Apache::lonsequence
1.16 www 189: </LocationMatch>
190:
1.44 www 191: <LocationMatch "^/+public/.*/syllabus$">
1.132 albertel 192: PerlAccessHandler Apache::publiccheck
1.139 albertel 193: AuthType LONCAPA
1.125 albertel 194: Require valid-user
195: PerlAuthzHandler Apache::lonacc
1.16 www 196: SetHandler perl-script
1.126 albertel 197: PerlHandler Apache::lonsyllabus
1.16 www 198: ErrorDocument 404 /adm/notfound.html
199: ErrorDocument 500 /adm/errorhandler
200: </LocationMatch>
201:
1.122 www 202: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
1.132 albertel 203: PerlAccessHandler Apache::publiccheck
1.139 albertel 204: AuthType LONCAPA
1.125 albertel 205: Require valid-user
206: PerlAuthzHandler Apache::lonacc
1.121 www 207: SetHandler perl-script
1.126 albertel 208: PerlHandler Apache::lonrss
1.121 www 209: ErrorDocument 404 /adm/notfound.html
210: ErrorDocument 500 /adm/errorhandler
211: </LocationMatch>
212:
1.44 www 213: <LocationMatch "^/adm/.*/aboutme$">
1.139 albertel 214: AuthType LONCAPA
1.125 albertel 215: Require valid-user
216: PerlAuthzHandler Apache::lonacc
1.16 www 217: SetHandler perl-script
1.126 albertel 218: PerlHandler Apache::lonaboutme
1.19 www 219: ErrorDocument 404 /adm/notfound.html
1.54 www 220: ErrorDocument 406 /adm/notinit.html
1.19 www 221: ErrorDocument 500 /adm/errorhandler
222: </LocationMatch>
223:
1.153 albertel 224: <LocationMatch "^/adm/.*/aboutme/portfolio$">
225: PerlAccessHandler Apache::publiccheck
226: AuthType LONCAPA
227: Require valid-user
228: PerlAuthzHandler Apache::lonacc
229: SetHandler perl-script
230: PerlHandler Apache::lonaboutme
231: ErrorDocument 404 /adm/notfound.html
232: ErrorDocument 406 /adm/notinit.html
233: ErrorDocument 500 /adm/errorhandler
234: </LocationMatch>
235:
1.44 www 236: <LocationMatch "^/adm/.*/smppg$">
1.139 albertel 237: AuthType LONCAPA
1.125 albertel 238: Require valid-user
239: PerlAuthzHandler Apache::lonacc
1.19 www 240: SetHandler perl-script
1.172 www 241: PerlHandler Apache::londatecheck
1.178 raeburn 242: PerlHandler Apache::lonipcheck
1.126 albertel 243: PerlHandler Apache::lonsimplepage
1.19 www 244: ErrorDocument 404 /adm/notfound.html
1.54 www 245: ErrorDocument 406 /adm/notinit.html
1.19 www 246: ErrorDocument 500 /adm/errorhandler
247: </LocationMatch>
248:
1.44 www 249: <LocationMatch "^/adm/.*/bulletinboard$">
1.139 albertel 250: AuthType LONCAPA
1.125 albertel 251: Require valid-user
252: PerlAuthzHandler Apache::lonacc
1.19 www 253: SetHandler perl-script
1.126 albertel 254: PerlHandler Apache::londatecheck
1.178 raeburn 255: PerlHandler Apache::lonipcheck
1.126 albertel 256: PerlHandler Apache::lonbulletin
1.55 www 257: ErrorDocument 404 /adm/notfound.html
258: ErrorDocument 406 /adm/notinit.html
259: ErrorDocument 500 /adm/errorhandler
260: </LocationMatch>
261:
262: <LocationMatch "\.problem/smpedit$">
1.139 albertel 263: AuthType LONCAPA
1.125 albertel 264: Require valid-user
265: PerlAuthzHandler Apache::lonacc
1.55 www 266: SetHandler perl-script
1.126 albertel 267: PerlHandler Apache::lonsimpleproblemedit
1.11 www 268: ErrorDocument 404 /adm/notfound.html
1.54 www 269: ErrorDocument 406 /adm/notinit.html
1.1 harris41 270: ErrorDocument 500 /adm/errorhandler
271: </LocationMatch>
272:
1.242 raeburn 273: <LocationMatch "^/adm/.*/exttools?$">
274: AuthType LONCAPA
275: Require valid-user
276: PerlAuthzHandler Apache::lonacc
277: SetHandler perl-script
278: PerlHandler Apache::londatecheck
279: PerlHandler Apache::lonipcheck
280: PerlHandler Apache::lonexttool
281: ErrorDocument 404 /adm/notfound.html
282: ErrorDocument 406 /adm/notinit.html
283: ErrorDocument 500 /adm/errorhandler
284: </LocationMatch>
285:
1.244 raeburn 286: <LocationMatch "^/adm/placement$">
287: AuthType LONCAPA
288: Require valid-user
289: PerlAuthzHandler Apache::lonacc
290: SetHandler perl-script
291: PerlHandler Apache::lonplacementtest
292: ErrorDocument 404 /adm/notfound.html
293: ErrorDocument 406 /adm/notinit.html
294: ErrorDocument 500 /adm/errorhandler
295: </LocationMatch>
296:
1.205 www 297: <LocationMatch "^/+priv/.*">
1.139 albertel 298: AuthType LONCAPA
1.131 albertel 299: Require valid-user
1.125 albertel 300: PerlAuthzHandler Apache::loncacc
1.1 harris41 301: SetHandler perl-script
302: ErrorDocument 403 /adm/login
303: ErrorDocument 404 /adm/notfound.html
1.18 www 304: ErrorDocument 406 /adm/unauthorized
1.1 harris41 305: ErrorDocument 500 /adm/errorhandler
306: </LocationMatch>
307:
1.234 raeburn 308: <LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/">
1.214 raeburn 309: <IfModule mod_dav.c>
310: <IfModule mod_ssl.c>
311: AuthType Basic
312: AuthName "LONCAPA username,domain"
313: Require valid-user
314: SSLRequireSSL
315: PerlAuthenHandler Apache::lonwebdavauth
316: PerlAuthzHandler Apache::lonwebdavacc
317: Dav On
318: DirectoryIndex index.missing
319: Options Indexes FollowSymLinks
320: ErrorDocument 403 /adm/nowebdav.html
321: ErrorDocument 404 /adm/notfound.html
322: ErrorDocument 406 /adm/unauthorized
323: ErrorDocument 500 /adm/errorhandler
324: </IfModule>
325: <IfModule !mod_ssl.c>
326: <IfModule mod_rewrite.c>
327: RewriteEngine on
328: RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
329: </IfModule>
330: </IfModule>
1.211 raeburn 331: </IfModule>
1.214 raeburn 332: <IfModule !mod_dav.c>
1.211 raeburn 333: <IfModule mod_rewrite.c>
1.214 raeburn 334: RewriteEngine on
335: RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
1.211 raeburn 336: </IfModule>
337: </IfModule>
1.210 raeburn 338: </LocationMatch>
339:
1.21 www 340: <LocationMatch "^/+raw.*">
1.1 harris41 341: PerlAccessHandler Apache::lonracc
342: </LocationMatch>
343:
1.41 bowersj2 344: <LocationMatch "^/adm/helper/.*\.helper$">
1.139 albertel 345: AuthType LONCAPA
1.125 albertel 346: Require valid-user
1.142 albertel 347: PerlAuthzHandler Apache::lonacc
1.41 bowersj2 348: SetHandler perl-script
1.126 albertel 349: PerlHandler Apache::lonhelper
1.41 bowersj2 350: ErrorDocument 403 /adm/login
351: ErrorDocument 404 /adm/notfound.html
352: ErrorDocument 406 /adm/unauthorized
353: ErrorDocument 500 /adm/errorhandler
354: </LocationMatch>
355:
1.23 albertel 356: <LocationMatch "/prtspool">
1.139 albertel 357: AuthType LONCAPA
1.125 albertel 358: Require valid-user
359: PerlAuthzHandler Apache::lonacc
1.23 albertel 360: ErrorDocument 403 /adm/login
361: ErrorDocument 404 /adm/notfound.html
362: ErrorDocument 406 /adm/roles
1.99 www 363: ErrorDocument 413 /adm/overloaded.txt
1.23 albertel 364: ErrorDocument 500 /adm/errorhandler
365: </LocationMatch>
1.167 banghart 366:
367: <LocationMatch "/zipspool">
368: AuthType LONCAPA
369: Require valid-user
370: PerlAuthzHandler Apache::lonacc
371: ErrorDocument 403 /adm/login
372: ErrorDocument 404 /adm/notfound.html
373: ErrorDocument 406 /adm/roles
374: ErrorDocument 413 /adm/overloaded.txt
375: ErrorDocument 500 /adm/errorhandler
376: </LocationMatch>
1.1 harris41 377: # ------------------------------------------------------------------------- RAT
378:
1.205 www 379: <LocationMatch "^/+priv/.*\.sequence$">
1.1 harris41 380: SetHandler perl-script
1.126 albertel 381: PerlHandler Apache::lonratedt
1.1 harris41 382: </LocationMatch>
383:
1.205 www 384: <LocationMatch "^/+priv/.*\.page$">
1.1 harris41 385: SetHandler perl-script
1.126 albertel 386: PerlHandler Apache::lonratedt
1.1 harris41 387: </LocationMatch>
388:
1.205 www 389: <LocationMatch "^/+priv/.*\/ratserver$">
1.1 harris41 390: SetHandler perl-script
1.126 albertel 391: PerlHandler Apache::lonratsrv
1.1 harris41 392: </LocationMatch>
393:
1.205 www 394: <LocationMatch "^/+priv/.*\/adveditmenu$">
1.100 raeburn 395: SetHandler perl-script
1.126 albertel 396: PerlHandler Apache::lonratmenu
1.100 raeburn 397: </LocationMatch>
398:
1.1 harris41 399: <Location /adm/ratparms>
1.139 albertel 400: AuthType LONCAPA
1.125 albertel 401: Require valid-user
402: PerlAuthzHandler Apache::lonacc
1.1 harris41 403: SetHandler perl-script
1.126 albertel 404: PerlHandler Apache::lonratparms
1.1 harris41 405: ErrorDocument 403 /adm/login
406: ErrorDocument 500 /adm/errorhandler
407: </Location>
408:
409: # --------------------------------------------- Resource Space Content Handlers
410:
1.64 albertel 411: <LocationMatch "^/+res.*/$">
1.1 harris41 412: SetHandler perl-script
1.126 albertel 413: PerlHandler Apache::lonindexer
1.29 www 414: PerlCleanupHandler Apache::lonindexer::cleanup
1.129 albertel 415: PerlCleanupHandler Apache::lonacc::cleanup
1.1 harris41 416: </LocationMatch>
417:
1.190 raeburn 418: <LocationMatch "^/+res.*\.tex$">
1.1 harris41 419: SetHandler perl-script
1.126 albertel 420: PerlHandler Apache::lontex
1.1 harris41 421: </LocationMatch>
422:
1.71 www 423: <LocationMatch "^/+res/.*\.page$">
1.1 harris41 424: SetHandler perl-script
1.126 albertel 425: PerlHandler Apache::lonpage
1.1 harris41 426: </LocationMatch>
427:
1.71 www 428: <LocationMatch "^/+res/.*\.sequence$">
1.1 harris41 429: SetHandler perl-script
1.126 albertel 430: PerlHandler Apache::lonsequence
1.1 harris41 431: </LocationMatch>
432:
1.205 www 433: <LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$">
1.132 albertel 434: PerlAccessHandler Apache::publiccheck
1.1 harris41 435: SetHandler perl-script
1.126 albertel 436: PerlHandler Apache::lonmeta
1.99 www 437: ErrorDocument 413 /adm/overloaded.txt
1.39 www 438: </LocationMatch>
439:
1.71 www 440: <LocationMatch "^/adm/bombs/">
1.139 albertel 441: AuthType LONCAPA
1.125 albertel 442: Require valid-user
1.228 raeburn 443: PerlAuthzHandler Apache::lonacc
1.71 www 444: SetHandler perl-script
1.126 albertel 445: PerlHandler Apache::lonmeta
1.71 www 446: </LocationMatch>
447:
448:
449:
1.205 www 450: <LocationMatch "^/+(res|priv)/.*\.rights$">
1.39 www 451: SetHandler perl-script
1.126 albertel 452: PerlHandler Apache::lonrights
1.1 harris41 453: </LocationMatch>
454:
1.205 www 455: <LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$">
1.1 harris41 456: SetHandler perl-script
1.126 albertel 457: PerlHandler Apache::londatecheck
1.178 raeburn 458: PerlHandler Apache::lonipcheck
1.126 albertel 459: PerlHandler Apache::lonxml
1.1 harris41 460: </LocationMatch>
461:
1.205 www 462: <LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
1.1 harris41 463: SetHandler perl-script
1.126 albertel 464: PerlHandler Apache::lonhomework
1.1 harris41 465: </LocationMatch>
466:
1.205 www 467: <LocationMatch "^/+priv/.*\.(js|css|txt|tex)$">
1.185 raeburn 468: SetHandler perl-script
469: PerlHandler Apache::lonxml
470: </LocationMatch>
471:
1.240 damieng 472: <LocationMatch "^/daxe(page|open)/priv/">
1.236 damieng 473: AuthType LONCAPA
474: Require valid-user
475: PerlAuthzHandler Apache::loncacc
1.240 damieng 476: ErrorDocument 403 /adm/login
477: ErrorDocument 404 /adm/notfound.html
478: ErrorDocument 406 /adm/unauthorized
479: ErrorDocument 500 /adm/errorhandler
480: </LocationMatch>
481:
482: <LocationMatch "^/daxe(page|open)/uploaded/">
483: AuthType LONCAPA
484: Require valid-user
485: PerlAuthzHandler Apache::lonacc
1.236 damieng 486: ErrorDocument 403 /adm/login
487: ErrorDocument 404 /adm/notfound.html
488: ErrorDocument 406 /adm/unauthorized
489: ErrorDocument 500 /adm/errorhandler
490: </LocationMatch>
491:
1.238 damieng 492: <LocationMatch "^/daxepage/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
1.237 damieng 493: SetHandler perl-script
494: PerlHandler Apache::daxepage
495: </LocationMatch>
496:
1.243 damieng 497: <LocationMatch "^/daxepage/uploaded/[^/]+/[^/]+/.*html?$">
1.239 damieng 498: SetHandler perl-script
499: PerlHandler Apache::daxepage
500: </LocationMatch>
501:
1.238 damieng 502: <LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
1.236 damieng 503: SetHandler perl-script
504: PerlHandler Apache::daxeopen
505: </LocationMatch>
506:
1.252 ! damieng 507: <LocationMatch "^/daxeopen/$">
! 508: SetHandler perl-script
! 509: PerlHandler Apache::daxeopen
! 510: </LocationMatch>
! 511:
! 512: <LocationMatch "^/daxeopen/res/(.+/)?$">
! 513: SetHandler perl-script
! 514: PerlHandler Apache::daxeopen
! 515: </LocationMatch>
! 516:
1.236 damieng 517: <LocationMatch "^/daxeopen/priv/.*/$">
518: SetHandler perl-script
519: PerlHandler Apache::daxeopen
520: </LocationMatch>
521:
1.243 damieng 522: <LocationMatch "^/daxeopen/uploaded/[^/]+/[^/]+/.*html?$">
1.239 damieng 523: SetHandler perl-script
524: PerlHandler Apache::daxeopen
525: </LocationMatch>
526:
1.246 raeburn 527: <LocationMatch "(?i)^/daxeopen/priv/.+\.(?!task$|problem$|exam$|quiz$|assess$|survey$|library$|xml$|html$|htm$|xhtml$|xhtm$)[^.]*$">
1.236 damieng 528: <IfModule mod_rewrite.c>
529: RewriteEngine on
1.245 raeburn 530: RewriteRule /daxeopen/(.*) /$1
1.236 damieng 531: </IfModule>
1.245 raeburn 532: </LocationMatch>
1.236 damieng 533:
1.252 ! damieng 534: <LocationMatch "(?i)^/daxeopen/(res/.*\.(jpg|jpeg|gif|png|svg))$">
! 535: <IfModule mod_rewrite.c>
! 536: RewriteEngine on
! 537: RewriteRule /daxeopen/(.*) /$1
! 538: </IfModule>
! 539: </LocationMatch>
! 540:
1.236 damieng 541: <LocationMatch "^/daxesave$">
542: AuthType LONCAPA
543: Require valid-user
544: PerlAuthzHandler Apache::lonacc
545: SetHandler perl-script
546: PerlHandler Apache::daxesave
547: </LocationMatch>
548:
1.247 raeburn 549: <Location /adm/coursepub>
550: AuthType LONCAPA
551: Require valid-user
552: PerlAuthzHandler Apache::lonacc
553: SetHandler perl-script
554: PerlHandler Apache::loncoursepub
555: ErrorDocument 404 /adm/notfound.html
556: ErrorDocument 500 /adm/errorhandler
557: </Location>
558:
1.1 harris41 559: <LocationMatch "^/adm/wrapper/">
1.139 albertel 560: AuthType LONCAPA
1.125 albertel 561: Require valid-user
562: PerlAuthzHandler Apache::lonacc
1.172 www 563: PerlHandler Apache::londatecheck
1.178 raeburn 564: PerlHandler Apache::lonipcheck
1.1 harris41 565: SetHandler perl-script
1.126 albertel 566: PerlHandler Apache::lonwrapper
1.66 www 567: ErrorDocument 403 /adm/login
568: ErrorDocument 500 /adm/errorhandler
569: </LocationMatch>
570:
1.113 www 571: <LocationMatch "^/adm/source">
1.139 albertel 572: AuthType LONCAPA
1.125 albertel 573: Require valid-user
574: PerlAuthzHandler Apache::lonacc
1.83 taceyjo1 575: SetHandler perl-script
1.126 albertel 576: PerlHandler Apache::lonsource
1.83 taceyjo1 577: ErrorDocument 403 /adm/login
1.85 www 578: ErrorDocument 406 /adm/roles
1.83 taceyjo1 579: ErrorDocument 500 /adm/errorhandler
580: </LocationMatch>
581:
582:
1.66 www 583: <LocationMatch "^/adm/localize/">
1.139 albertel 584: AuthType LONCAPA
1.125 albertel 585: Require valid-user
586: PerlAuthzHandler Apache::lonacc
1.66 www 587: SetHandler perl-script
1.126 albertel 588: PerlHandler Apache::lonlocalize
1.1 harris41 589: ErrorDocument 403 /adm/login
590: ErrorDocument 500 /adm/errorhandler
591: </LocationMatch>
592:
593: # -------------------------------------------------------------- Admin Programs
1.24 albertel 594:
595: <Location /adm/randomlabel.png>
1.139 albertel 596: AuthType LONCAPA
1.125 albertel 597: Require valid-user
598: PerlAuthzHandler Apache::lonacc
1.24 albertel 599: SetHandler perl-script
1.126 albertel 600: PerlHandler Apache::randomlylabel
1.69 albertel 601: ErrorDocument 403 /adm/login
602: ErrorDocument 500 /adm/errorhandler
603: </Location>
604:
605: <Location /adm/imagechoice>
1.139 albertel 606: AuthType LONCAPA
1.125 albertel 607: Require valid-user
608: PerlAuthzHandler Apache::lonacc
1.69 albertel 609: SetHandler perl-script
1.126 albertel 610: PerlHandler Apache::imagechoice
1.24 albertel 611: ErrorDocument 403 /adm/login
612: ErrorDocument 500 /adm/errorhandler
613: </Location>
1.1 harris41 614:
1.200 www 615: <Location /adm/searchcourse>
616: AuthType LONCAPA
617: Require valid-user
618: PerlAuthzHandler Apache::lonacc
619: SetHandler perl-script
620: PerlHandler Apache::lonsearchcourse
621: ErrorDocument 403 /adm/login
622: ErrorDocument 500 /adm/errorhandler
623: </Location>
624:
1.201 www 625: <Location /adm/indexcourse>
626: AuthType LONCAPA
627: Require valid-user
628: PerlAuthzHandler Apache::lonacc
629: SetHandler perl-script
630: PerlHandler Apache::lonindexcourse
631: ErrorDocument 403 /adm/login
632: ErrorDocument 500 /adm/errorhandler
633: </Location>
1.200 www 634:
1.1 harris41 635: <Location /adm/statistics>
1.139 albertel 636: AuthType LONCAPA
1.125 albertel 637: Require valid-user
638: PerlAuthzHandler Apache::lonacc
1.1 harris41 639: SetHandler perl-script
1.126 albertel 640: PerlHandler Apache::lonstatistics
1.1 harris41 641: ErrorDocument 403 /adm/login
1.20 www 642: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 643: ErrorDocument 500 /adm/errorhandler
644: </Location>
645:
1.92 matthew 646: <Location /adm/trackstudent>
1.139 albertel 647: AuthType LONCAPA
1.125 albertel 648: Require valid-user
649: PerlAuthzHandler Apache::lonacc
1.92 matthew 650: SetHandler perl-script
1.126 albertel 651: PerlHandler Apache::lontrackstudent
1.92 matthew 652: ErrorDocument 403 /adm/login
653: ErrorDocument 413 /adm/overloaded.txt
654: ErrorDocument 500 /adm/errorhandler
655: </Location>
656:
1.1 harris41 657: <Location /adm/roles>
1.139 albertel 658: AuthType LONCAPA
1.125 albertel 659: Require valid-user
660: PerlAuthzHandler Apache::lonacc
1.1 harris41 661: SetHandler perl-script
1.126 albertel 662: PerlHandler Apache::lonroles
1.33 www 663: ErrorDocument 403 /adm/login
1.174 www 664: ErrorDocument 409 /adm/preferences?action=lockwarning
1.33 www 665: ErrorDocument 500 /adm/errorhandler
666: </Location>
667:
668: <Location /adm/menu>
1.139 albertel 669: AuthType LONCAPA
1.125 albertel 670: Require valid-user
671: PerlAuthzHandler Apache::lonacc
1.33 www 672: SetHandler perl-script
1.128 albertel 673: PerlHandler Apache::lonmainmenu
1.42 www 674: ErrorDocument 403 /adm/login
675: ErrorDocument 500 /adm/errorhandler
676: </Location>
677:
1.203 www 678: <Location /adm/pickresource>
679: AuthType LONCAPA
680: Require valid-user
681: PerlAuthzHandler Apache::lonacc
682: SetHandler perl-script
683: PerlHandler Apache::lonpickresource
684: ErrorDocument 403 /adm/login
685: ErrorDocument 500 /adm/errorhandler
686: </Location>
687:
1.176 raeburn 688: <Location /adm/pickauthor>
689: AuthType LONCAPA
690: Require valid-user
691: PerlAuthzHandler Apache::lonacc
692: SetHandler perl-script
693: PerlHandler Apache::lonpickauthor
694: ErrorDocument 403 /adm/login
695: ErrorDocument 500 /adm/errorhandler
696: </Location>
697:
1.27 www 698: <Location /adm/pickstudent>
1.139 albertel 699: AuthType LONCAPA
1.125 albertel 700: Require valid-user
701: PerlAuthzHandler Apache::lonacc
1.27 www 702: SetHandler perl-script
1.126 albertel 703: PerlHandler Apache::lonpickstudent
1.40 www 704: ErrorDocument 403 /adm/login
705: ErrorDocument 500 /adm/errorhandler
706: </Location>
707:
1.187 raeburn 708: <Location /adm/pickuser>
709: AuthType LONCAPA
710: Require valid-user
711: PerlAuthzHandler Apache::lonacc
712: SetHandler perl-script
713: PerlHandler Apache::lonpickuser
714: ErrorDocument 403 /adm/login
715: ErrorDocument 406 /adm/roles
716: ErrorDocument 500 /adm/errorhandler
717: </Location>
718:
1.40 www 719: <Location /adm/pickcourse>
1.139 albertel 720: AuthType LONCAPA
1.125 albertel 721: Require valid-user
722: PerlAuthzHandler Apache::lonacc
1.40 www 723: SetHandler perl-script
1.126 albertel 724: PerlHandler Apache::lonpickcourse
1.77 albertel 725: ErrorDocument 403 /adm/login
726: ErrorDocument 500 /adm/errorhandler
727: </Location>
728:
729: <Location /adm/pickcode>
1.139 albertel 730: AuthType LONCAPA
1.125 albertel 731: Require valid-user
732: PerlAuthzHandler Apache::lonacc
1.77 albertel 733: SetHandler perl-script
1.126 albertel 734: PerlHandler Apache::lonpickcode
1.1 harris41 735: ErrorDocument 403 /adm/login
736: ErrorDocument 500 /adm/errorhandler
737: </Location>
738:
1.215 raeburn 739: <Location /adm/dependencies>
740: AuthType LONCAPA
741: Require valid-user
742: PerlAuthzHandler Apache::lonacc
743: SetHandler perl-script
744: PerlHandler Apache::londependencies
745: ErrorDocument 403 /adm/login
746: ErrorDocument 406 /adm/roles
747: ErrorDocument 500 /adm/errorhandler
748: </Location>
749:
1.1 harris41 750: <Location /adm/login>
751: SetHandler perl-script
1.126 albertel 752: PerlHandler Apache::lonlogin
1.1 harris41 753: </Location>
754:
1.148 raeburn 755: <Location /adm/restrictedaccess>
756: PerlAccessHandler Apache::publiccheck
757: AuthType LONCAPA
1.152 albertel 758: Require valid-user
1.228 raeburn 759: PerlAuthzHandler Apache::lonacc
1.148 raeburn 760: SetHandler perl-script
761: PerlHandler Apache::restrictedaccess
1.154 albertel 762: ErrorDocument 500 /adm/errorhandler
1.148 raeburn 763: </Location>
764:
1.162 raeburn 765: <Location /adm/blockedaccess>
766: PerlAccessHandler Apache::publiccheck
767: AuthType LONCAPA
768: Require valid-user
1.228 raeburn 769: PerlAuthzHandler Apache::lonacc
1.162 raeburn 770: SetHandler perl-script
771: PerlHandler Apache::blockedaccess
772: ErrorDocument 500 /adm/errorhandler
773: </Location>
774:
1.1 harris41 775: <Location /adm/logout>
1.139 albertel 776: AuthType LONCAPA
1.125 albertel 777: Require valid-user
778: PerlAuthzHandler Apache::lonacc
1.1 harris41 779: SetHandler perl-script
1.126 albertel 780: PerlHandler Apache::lonlogout
1.1 harris41 781: ErrorDocument 403 /adm/login
1.175 www 782: ErrorDocument 409 /adm/preferences?action=lockwarning
1.154 albertel 783: ErrorDocument 500 /adm/errorhandler
1.1 harris41 784: </Location>
785:
1.117 albertel 786: <Location /adm/switchserver>
1.139 albertel 787: AuthType LONCAPA
1.125 albertel 788: Require valid-user
789: PerlAuthzHandler Apache::lonacc
1.117 albertel 790: SetHandler perl-script
1.126 albertel 791: PerlHandler Apache::switchserver
1.117 albertel 792: ErrorDocument 403 /adm/login
1.154 albertel 793: ErrorDocument 500 /adm/errorhandler
1.117 albertel 794: </Location>
795:
1.1 harris41 796: <Location /adm/authenticate>
797: SetHandler perl-script
1.126 albertel 798: PerlHandler Apache::lonauth
1.1 harris41 799: </Location>
800:
1.117 albertel 801: <Location /adm/migrateuser>
802: SetHandler perl-script
1.126 albertel 803: PerlHandler Apache::migrateuser
1.117 albertel 804: </Location>
805:
1.212 raeburn 806: <Location /adm/sso>
807: <IfModule mod_shib>
808: AuthType shibboleth
809: ShibUseEnvironment On
810: ShibRequestSetting requireSession 1
811: ShibRequestSetting redirectToSSL 443
812: require valid-user
813: PerlAuthzHandler Apache::lonshibacc
814: PerlAuthzHandler Apache::lonacc
815: </IfModule>
1.213 raeburn 816: <IfModule !mod_shib>
817: PerlTypeHandler Apache::lonnoshib
818: </IfModule>
1.212 raeburn 819: </Location>
820:
1.1 harris41 821: <Location /adm/annotations>
1.139 albertel 822: AuthType LONCAPA
1.125 albertel 823: Require valid-user
824: PerlAuthzHandler Apache::lonacc
1.1 harris41 825: SetHandler perl-script
1.126 albertel 826: PerlHandler Apache::admannotations
1.1 harris41 827: ErrorDocument 403 /adm/login
828: ErrorDocument 500 /adm/errorhandler
829: </Location>
830:
1.91 www 831: <Location /adm/spellcheck>
1.139 albertel 832: AuthType LONCAPA
1.125 albertel 833: Require valid-user
834: PerlAuthzHandler Apache::lonacc
1.91 www 835: SetHandler perl-script
1.126 albertel 836: PerlHandler Apache::lonspeller
1.91 www 837: ErrorDocument 403 /adm/login
838: ErrorDocument 500 /adm/errorhandler
839: </Location>
840:
1.1 harris41 841: <Location /adm/flip>
1.139 albertel 842: AuthType LONCAPA
1.125 albertel 843: Require valid-user
844: PerlAuthzHandler Apache::lonacc
1.1 harris41 845: SetHandler perl-script
1.126 albertel 846: PerlHandler Apache::lonpageflip
1.30 www 847: PerlCleanupHandler Apache::lonpageflip::cleanup
1.129 albertel 848: PerlCleanupHandler Apache::lonacc::cleanup
1.1 harris41 849: ErrorDocument 406 /adm/roles
850: ErrorDocument 403 /adm/login
851: ErrorDocument 500 /adm/errorhandler
852: </Location>
853:
854: <Location /adm/ambiguous>
1.139 albertel 855: AuthType LONCAPA
1.125 albertel 856: Require valid-user
857: PerlAuthzHandler Apache::lonacc
1.1 harris41 858: SetHandler perl-script
1.126 albertel 859: PerlHandler Apache::lonambiguous
1.30 www 860: PerlCleanupHandler Apache::lonambiguous::cleanup
1.129 albertel 861: PerlCleanupHandler Apache::lonacc::cleanup
1.1 harris41 862: ErrorDocument 403 /adm/login
863: ErrorDocument 500 /adm/errorhandler
864: </Location>
865:
866: <Location /adm/email>
1.139 albertel 867: AuthType LONCAPA
1.125 albertel 868: Require valid-user
869: PerlAuthzHandler Apache::lonacc
1.1 harris41 870: SetHandler perl-script
1.130 albertel 871: PerlHandler Apache::lonmsgdisplay
1.1 harris41 872: ErrorDocument 403 /adm/login
873: ErrorDocument 500 /adm/errorhandler
874: </Location>
875:
1.116 raeburn 876: <Location /adm/notify>
1.139 albertel 877: AuthType LONCAPA
1.125 albertel 878: Require valid-user
879: PerlAuthzHandler Apache::lonacc
1.116 raeburn 880: SetHandler perl-script
1.126 albertel 881: PerlHandler Apache::lonnotify
1.116 raeburn 882: ErrorDocument 403 /adm/login
883: ErrorDocument 500 /adm/errorhandler
884: </Location>
885:
1.1 harris41 886: <Location /adm/parmset>
1.139 albertel 887: AuthType LONCAPA
1.125 albertel 888: Require valid-user
889: PerlAuthzHandler Apache::lonacc
1.1 harris41 890: SetHandler perl-script
1.126 albertel 891: PerlHandler Apache::lonparmset
1.31 bowersj2 892: ErrorDocument 403 /adm/login
893: ErrorDocument 406 /adm/roles
894: ErrorDocument 500 /adm/errorhandler
895: </Location>
896:
1.185 raeburn 897: <Location /adm/courseprefs>
898: AuthType LONCAPA
899: Require valid-user
900: PerlAuthzHandler Apache::lonacc
901: SetHandler perl-script
902: PerlHandler Apache::courseprefs
903: ErrorDocument 403 /adm/login
904: ErrorDocument 406 /adm/roles
905: ErrorDocument 500 /adm/errorhandler
906: </Location>
907:
1.110 albertel 908: <Location /adm/slotrequest>
1.139 albertel 909: AuthType LONCAPA
1.125 albertel 910: Require valid-user
911: PerlAuthzHandler Apache::lonacc
1.110 albertel 912: SetHandler perl-script
1.126 albertel 913: PerlHandler Apache::slotrequest
1.110 albertel 914: ErrorDocument 403 /adm/login
915: ErrorDocument 406 /adm/roles
916: ErrorDocument 500 /adm/errorhandler
917: </Location>
918:
1.31 bowersj2 919: <Location /adm/wizard>
1.139 albertel 920: AuthType LONCAPA
1.125 albertel 921: Require valid-user
922: PerlAuthzHandler Apache::lonacc
1.31 bowersj2 923: SetHandler perl-script
1.126 albertel 924: PerlHandler Apache::lonwizard
1.1 harris41 925: ErrorDocument 403 /adm/login
926: ErrorDocument 406 /adm/roles
927: ErrorDocument 500 /adm/errorhandler
928: </Location>
929:
930: <Location /adm/grades>
1.139 albertel 931: AuthType LONCAPA
1.125 albertel 932: Require valid-user
933: PerlAuthzHandler Apache::lonacc
1.1 harris41 934: SetHandler perl-script
1.126 albertel 935: PerlHandler Apache::grades
1.1 harris41 936: ErrorDocument 403 /adm/login
937: ErrorDocument 406 /adm/roles
938: ErrorDocument 500 /adm/errorhandler
939: </Location>
940:
1.187 raeburn 941: <Location /adm/requestcourse>
942: AuthType LONCAPA
943: Require valid-user
944: PerlAuthzHandler Apache::lonacc
945: SetHandler perl-script
946: PerlHandler Apache::lonrequestcourse
947: ErrorDocument 403 /adm/login
948: ErrorDocument 406 /adm/roles
949: ErrorDocument 500 /adm/errorhandler
950: </Location>
951:
1.1 harris41 952: <Location /adm/createcourse>
1.139 albertel 953: AuthType LONCAPA
1.125 albertel 954: Require valid-user
955: PerlAuthzHandler Apache::lonacc
1.1 harris41 956: SetHandler perl-script
1.126 albertel 957: PerlHandler Apache::loncreatecourse
1.1 harris41 958: ErrorDocument 403 /adm/login
959: ErrorDocument 406 /adm/roles
960: ErrorDocument 500 /adm/errorhandler
1.67 raeburn 961: </Location>
962:
963: <Location /adm/modifycourse>
1.139 albertel 964: AuthType LONCAPA
1.125 albertel 965: Require valid-user
966: PerlAuthzHandler Apache::lonacc
1.67 raeburn 967: SetHandler perl-script
1.126 albertel 968: PerlHandler Apache::lonmodifycourse
1.67 raeburn 969: ErrorDocument 403 /adm/login
970: ErrorDocument 406 /adm/roles
971: ErrorDocument 500 /adm/errorhandler
1.1 harris41 972: </Location>
973:
1.163 raeburn 974: <Location /adm/domainprefs>
975: AuthType LONCAPA
976: Require valid-user
977: PerlAuthzHandler Apache::lonacc
978: SetHandler perl-script
979: PerlHandler Apache::domainprefs
980: ErrorDocument 403 /adm/login
981: ErrorDocument 406 /adm/roles
982: ErrorDocument 500 /adm/errorhandler
983: </Location>
984:
1.182 raeburn 985: <Location /adm/domainstatus>
986: PerlAccessHandler Apache::lonstatusacc
987: SetHandler perl-script
988: PerlHandler Apache::domainstatus
989: ErrorDocument 403 /adm/login
990: ErrorDocument 406 /adm/roles
991: ErrorDocument 500 /adm/errorhandler
992: </Location>
993:
1.1 harris41 994: <Location /adm/createuser>
1.139 albertel 995: AuthType LONCAPA
1.125 albertel 996: Require valid-user
997: PerlAuthzHandler Apache::lonacc
1.1 harris41 998: SetHandler perl-script
1.126 albertel 999: PerlHandler Apache::loncreateuser
1.1 harris41 1000: ErrorDocument 403 /adm/login
1001: ErrorDocument 406 /adm/roles
1002: ErrorDocument 500 /adm/errorhandler
1003: </Location>
1004:
1005: <Location /adm/publish>
1.139 albertel 1006: AuthType LONCAPA
1.125 albertel 1007: Require valid-user
1008: PerlAuthzHandler Apache::lonacc
1.1 harris41 1009: SetHandler perl-script
1.126 albertel 1010: PerlHandler Apache::lonpublisher
1.1 harris41 1011: ErrorDocument 403 /adm/login
1012: ErrorDocument 404 /adm/notfound.html
1.18 www 1013: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1014: ErrorDocument 500 /adm/errorhandler
1015: </Location>
1016:
1.205 www 1017: <LocationMatch "^/+priv/.*/$">
1.139 albertel 1018: AuthType LONCAPA
1.131 albertel 1019: Require valid-user
1.125 albertel 1020: PerlAuthzHandler Apache::loncacc
1.1 harris41 1021: SetHandler perl-script
1.126 albertel 1022: PerlHandler Apache::lonpubdir
1.1 harris41 1023: ErrorDocument 403 /adm/login
1024: ErrorDocument 404 /adm/notfound.html
1.18 www 1025: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1026: ErrorDocument 500 /adm/errorhandler
1027: </LocationMatch>
1028:
1.18 www 1029: <Location /adm/unauthorized>
1.139 albertel 1030: AuthType LONCAPA
1.125 albertel 1031: Require valid-user
1032: PerlAuthzHandler Apache::lonacc
1.18 www 1033: SetHandler perl-script
1.126 albertel 1034: PerlHandler Apache::lonunauthorized
1.18 www 1035: ErrorDocument 403 /adm/login
1036: ErrorDocument 404 /adm/notfound.html
1.1 harris41 1037: ErrorDocument 500 /adm/errorhandler
1038: </Location>
1039:
1040: <Location /adm/retrieve>
1.139 albertel 1041: AuthType LONCAPA
1.125 albertel 1042: Require valid-user
1043: PerlAuthzHandler Apache::lonacc
1.1 harris41 1044: SetHandler perl-script
1.126 albertel 1045: PerlHandler Apache::lonretrieve
1.1 harris41 1046: ErrorDocument 403 /adm/login
1047: ErrorDocument 404 /adm/notfound.html
1.18 www 1048: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1049: ErrorDocument 500 /adm/errorhandler
1050: </Location>
1051:
1.109 www 1052: <Location /adm/cleanup>
1.139 albertel 1053: AuthType LONCAPA
1.125 albertel 1054: Require valid-user
1055: PerlAuthzHandler Apache::lonacc
1.109 www 1056: SetHandler perl-script
1.126 albertel 1057: PerlHandler Apache::loncleanup
1.109 www 1058: ErrorDocument 403 /adm/login
1059: ErrorDocument 404 /adm/notfound.html
1060: ErrorDocument 406 /adm/unauthorized
1061: ErrorDocument 500 /adm/errorhandler
1062: </Location>
1063:
1.1 harris41 1064: <Location /adm/cfile>
1.139 albertel 1065: AuthType LONCAPA
1.125 albertel 1066: Require valid-user
1067: PerlAuthzHandler Apache::lonacc
1.1 harris41 1068: SetHandler perl-script
1.126 albertel 1069: PerlHandler Apache::loncfile
1.1 harris41 1070: ErrorDocument 403 /adm/login
1071: ErrorDocument 404 /adm/notfound.html
1.18 www 1072: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1073: ErrorDocument 500 /adm/errorhandler
1074: </Location>
1075:
1076: <Location /adm/diff>
1.139 albertel 1077: AuthType LONCAPA
1.125 albertel 1078: Require valid-user
1079: PerlAuthzHandler Apache::lonacc
1.1 harris41 1080: SetHandler perl-script
1.126 albertel 1081: PerlHandler Apache::londiff
1.1 harris41 1082: ErrorDocument 403 /adm/login
1083: ErrorDocument 404 /adm/notfound.html
1.18 www 1084: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1085: ErrorDocument 500 /adm/errorhandler
1086: </Location>
1087:
1088: <Location /adm/upload>
1.139 albertel 1089: AuthType LONCAPA
1.125 albertel 1090: Require valid-user
1091: PerlAuthzHandler Apache::lonacc
1.1 harris41 1092: SetHandler perl-script
1.126 albertel 1093: PerlHandler Apache::lonupload
1.1 harris41 1094: ErrorDocument 403 /adm/login
1095: ErrorDocument 404 /adm/notfound.html
1.18 www 1096: ErrorDocument 406 /adm/unauthorized
1.1 harris41 1097: ErrorDocument 500 /adm/errorhandler
1.72 raeburn 1098: </Location>
1099:
1.73 raeburn 1100: <Location /adm/imsimport>
1.139 albertel 1101: AuthType LONCAPA
1.125 albertel 1102: Require valid-user
1103: PerlAuthzHandler Apache::lonacc
1.73 raeburn 1104: SetHandler perl-script
1.126 albertel 1105: PerlHandler Apache::imsimport
1.73 raeburn 1106: ErrorDocument 403 /adm/login
1107: ErrorDocument 404 /adm/notfound.html
1108: ErrorDocument 406 /adm/unauthorized
1109: ErrorDocument 500 /adm/errorhandler
1110: </Location>
1111:
1.72 raeburn 1112: <Location /adm/testbank>
1.139 albertel 1113: AuthType LONCAPA
1.125 albertel 1114: Require valid-user
1115: PerlAuthzHandler Apache::lonacc
1.72 raeburn 1116: SetHandler perl-script
1.126 albertel 1117: PerlHandler Apache::testbankimport
1.72 raeburn 1118: ErrorDocument 403 /adm/login
1119: ErrorDocument 404 /adm/notfound.html
1120: ErrorDocument 406 /adm/unauthorized
1121: ErrorDocument 500 /adm/errorhandler
1.1 harris41 1122: </Location>
1123:
1124: <Location /adm/assesscalc>
1.139 albertel 1125: AuthType LONCAPA
1.125 albertel 1126: Require valid-user
1127: PerlAuthzHandler Apache::lonacc
1.1 harris41 1128: SetHandler perl-script
1.126 albertel 1129: PerlHandler Apache::lonspreadsheet
1.1 harris41 1130: ErrorDocument 403 /adm/login
1131: ErrorDocument 406 /adm/roles
1.20 www 1132: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1133: ErrorDocument 500 /adm/errorhandler
1134: </Location>
1135:
1136: <Location /adm/studentcalc>
1.139 albertel 1137: AuthType LONCAPA
1.125 albertel 1138: Require valid-user
1139: PerlAuthzHandler Apache::lonacc
1.1 harris41 1140: SetHandler perl-script
1.126 albertel 1141: PerlHandler Apache::lonspreadsheet
1.1 harris41 1142: ErrorDocument 403 /adm/login
1143: ErrorDocument 406 /adm/roles
1.20 www 1144: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1145: ErrorDocument 500 /adm/errorhandler
1146: </Location>
1147:
1148: <Location /adm/classcalc>
1.139 albertel 1149: AuthType LONCAPA
1.125 albertel 1150: Require valid-user
1151: PerlAuthzHandler Apache::lonacc
1.1 harris41 1152: SetHandler perl-script
1.126 albertel 1153: PerlHandler Apache::lonspreadsheet
1.1 harris41 1154: ErrorDocument 403 /adm/login
1155: ErrorDocument 406 /adm/roles
1.20 www 1156: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1157: ErrorDocument 500 /adm/errorhandler
1158: </Location>
1159:
1160: <Location /adm/dropadd>
1.139 albertel 1161: AuthType LONCAPA
1.125 albertel 1162: Require valid-user
1163: PerlAuthzHandler Apache::lonacc
1.1 harris41 1164: SetHandler perl-script
1.126 albertel 1165: PerlHandler Apache::londropadd
1.44 www 1166: ErrorDocument 403 /adm/login
1167: ErrorDocument 406 /adm/roles
1168: ErrorDocument 500 /adm/errorhandler
1.65 raeburn 1169: </Location>
1170:
1.92 matthew 1171: <Location /adm/viewclasslist>
1.139 albertel 1172: AuthType LONCAPA
1.125 albertel 1173: Require valid-user
1174: PerlAuthzHandler Apache::lonacc
1.92 matthew 1175: SetHandler perl-script
1.126 albertel 1176: PerlHandler Apache::lonviewclasslist
1.92 matthew 1177: ErrorDocument 403 /adm/login
1178: ErrorDocument 406 /adm/roles
1179: ErrorDocument 500 /adm/errorhandler
1180: </Location>
1181:
1.118 raeburn 1182: <Location /adm/coursegroups>
1.139 albertel 1183: AuthType LONCAPA
1.125 albertel 1184: Require valid-user
1185: PerlAuthzHandler Apache::lonacc
1.118 raeburn 1186: SetHandler perl-script
1.126 albertel 1187: PerlHandler Apache::loncoursegroups
1.118 raeburn 1188: ErrorDocument 403 /adm/login
1189: ErrorDocument 406 /adm/roles
1190: ErrorDocument 500 /adm/errorhandler
1191: </Location>
1192:
1.143 raeburn 1193: <Location /adm/groupboards>
1194: AuthType LONCAPA
1195: Require valid-user
1196: PerlAuthzHandler Apache::lonacc
1197: SetHandler perl-script
1198: PerlHandler Apache::groupboards
1199: ErrorDocument 403 /adm/login
1200: ErrorDocument 406 /adm/roles
1201: ErrorDocument 500 /adm/errorhandler
1202: </Location>
1203:
1.144 raeburn 1204: <Location /adm/grouproster>
1205: AuthType LONCAPA
1206: Require valid-user
1207: PerlAuthzHandler Apache::lonacc
1208: SetHandler perl-script
1209: PerlHandler Apache::grouproster
1210: ErrorDocument 403 /adm/login
1211: ErrorDocument 406 /adm/roles
1212: ErrorDocument 500 /adm/errorhandler
1213: </Location>
1214:
1.112 raeburn 1215: <Location /adm/whatsnew>
1.139 albertel 1216: AuthType LONCAPA
1.125 albertel 1217: Require valid-user
1218: PerlAuthzHandler Apache::lonacc
1.112 raeburn 1219: SetHandler perl-script
1.126 albertel 1220: PerlHandler Apache::lonwhatsnew
1.112 raeburn 1221: ErrorDocument 403 /adm/login
1222: ErrorDocument 406 /adm/roles
1223: ErrorDocument 500 /adm/errorhandler
1224: </Location>
1225:
1.65 raeburn 1226: <Location /adm/populate>
1.139 albertel 1227: AuthType LONCAPA
1.125 albertel 1228: Require valid-user
1229: PerlAuthzHandler Apache::lonacc
1.65 raeburn 1230: SetHandler perl-script
1.126 albertel 1231: PerlHandler Apache::lonpopulate
1.65 raeburn 1232: ErrorDocument 403 /adm/login
1233: ErrorDocument 406 /adm/roles
1234: ErrorDocument 500 /adm/errorhandler
1.44 www 1235: </Location>
1236:
1237: <Location /adm/managekeys>
1.139 albertel 1238: AuthType LONCAPA
1.125 albertel 1239: Require valid-user
1240: PerlAuthzHandler Apache::lonacc
1.44 www 1241: SetHandler perl-script
1.126 albertel 1242: PerlHandler Apache::lonmanagekeys
1.1 harris41 1243: ErrorDocument 403 /adm/login
1244: ErrorDocument 406 /adm/roles
1245: ErrorDocument 500 /adm/errorhandler
1246: </Location>
1247:
1248: <Location /adm/printout>
1.139 albertel 1249: AuthType LONCAPA
1.125 albertel 1250: Require valid-user
1251: PerlAuthzHandler Apache::lonacc
1.1 harris41 1252: SetHandler perl-script
1.126 albertel 1253: PerlHandler Apache::lonprintout
1.1 harris41 1254: ErrorDocument 403 /adm/login
1.20 www 1255: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1256: ErrorDocument 500 /adm/errorhandler
1257: </Location>
1258:
1259: <Location /adm/feedback>
1.139 albertel 1260: AuthType LONCAPA
1.125 albertel 1261: Require valid-user
1262: PerlAuthzHandler Apache::lonacc
1.1 harris41 1263: SetHandler perl-script
1.126 albertel 1264: PerlHandler Apache::lonfeedback
1.10 www 1265: ErrorDocument 403 /adm/login
1266: ErrorDocument 500 /adm/errorhandler
1267: </Location>
1268:
1269: <Location /adm/coursedocs>
1.139 albertel 1270: AuthType LONCAPA
1.125 albertel 1271: Require valid-user
1272: PerlAuthzHandler Apache::lonacc
1.10 www 1273: SetHandler perl-script
1.126 albertel 1274: PerlHandler Apache::londocs
1.108 albertel 1275: PerlCleanupHandler Apache::londocs::untiehash
1.129 albertel 1276: PerlCleanupHandler Apache::lonacc::cleanup
1.10 www 1277: ErrorDocument 403 /adm/login
1278: ErrorDocument 500 /adm/errorhandler
1.73 raeburn 1279: </Location>
1280:
1.207 raeburn 1281: <Location /adm/supplemental>
1282: AuthType LONCAPA
1283: Require valid-user
1284: PerlAuthzHandler Apache::lonacc
1285: SetHandler perl-script
1286: PerlHandler Apache::londocs
1287: PerlCleanupHandler Apache::londocs::untiehash
1288: PerlCleanupHandler Apache::lonacc::cleanup
1289: ErrorDocument 403 /adm/login
1290: ErrorDocument 500 /adm/errorhandler
1291: </Location>
1292:
1.73 raeburn 1293: <Location /adm/imsimportdocs>
1.139 albertel 1294: AuthType LONCAPA
1.125 albertel 1295: Require valid-user
1296: PerlAuthzHandler Apache::lonacc
1.73 raeburn 1297: SetHandler perl-script
1.126 albertel 1298: PerlHandler Apache::imsimportdocs
1.73 raeburn 1299: ErrorDocument 403 /adm/login
1300: ErrorDocument 500 /adm/errorhandler
1.10 www 1301: </Location>
1302:
1.224 raeburn 1303: <Location /adm/extresedit>
1304: AuthType LONCAPA
1305: Require valid-user
1306: PerlAuthzHandler Apache::lonacc
1307: SetHandler perl-script
1308: PerlHandler Apache::lonextresedit
1309: ErrorDocument 403 /adm/login
1310: ErrorDocument 500 /adm/errorhandler
1311: </Location>
1312:
1.135 www 1313: <LocationMatch "^/adm/announcements">
1.139 albertel 1314: AuthType LONCAPA
1.125 albertel 1315: Require valid-user
1316: PerlAuthzHandler Apache::lonacc
1.10 www 1317: SetHandler perl-script
1.126 albertel 1318: PerlHandler Apache::lonannounce
1.10 www 1319: ErrorDocument 403 /adm/login
1320: ErrorDocument 500 /adm/errorhandler
1.135 www 1321: </LocationMatch>
1.10 www 1322:
1323: <Location /adm/chat>
1.139 albertel 1324: AuthType LONCAPA
1.125 albertel 1325: Require valid-user
1326: PerlAuthzHandler Apache::lonacc
1.10 www 1327: SetHandler perl-script
1.126 albertel 1328: PerlHandler Apache::lonchat
1.13 www 1329: ErrorDocument 500 /adm/errorhandler
1330: </Location>
1331:
1332: <Location /adm/chatfetch>
1.139 albertel 1333: AuthType LONCAPA
1.125 albertel 1334: Require valid-user
1335: PerlAuthzHandler Apache::lonacc
1.13 www 1336: SetHandler perl-script
1.126 albertel 1337: PerlHandler Apache::lonchatfetch
1.20 www 1338: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1339: ErrorDocument 500 /adm/errorhandler
1340: </Location>
1341:
1.137 albertel 1342: <Location /adm/groupchat>
1.139 albertel 1343: AuthType LONCAPA
1.137 albertel 1344: Require valid-user
1345: PerlAuthzHandler Apache::lonacc
1346: SetHandler perl-script
1347: PerlHandler Apache::longroupchat
1348: ErrorDocument 403 /adm/login
1349: ErrorDocument 500 /adm/errorhandler
1350: </Location>
1351:
1.1 harris41 1352: <Location /adm/evaluate>
1.139 albertel 1353: AuthType LONCAPA
1.125 albertel 1354: Require valid-user
1355: PerlAuthzHandler Apache::lonacc
1.1 harris41 1356: SetHandler perl-script
1.126 albertel 1357: PerlHandler Apache::lonevaluate
1.1 harris41 1358: ErrorDocument 403 /adm/login
1359: ErrorDocument 500 /adm/errorhandler
1360: </Location>
1361:
1362: <Location /adm/preferences>
1.139 albertel 1363: AuthType LONCAPA
1.125 albertel 1364: Require valid-user
1365: PerlAuthzHandler Apache::lonacc
1.1 harris41 1366: SetHandler perl-script
1.126 albertel 1367: PerlHandler Apache::lonpreferences
1.1 harris41 1368: ErrorDocument 403 /adm/login
1369: ErrorDocument 500 /adm/errorhandler
1370: </Location>
1371:
1372: <Location /adm/communicate>
1.139 albertel 1373: AuthType LONCAPA
1.125 albertel 1374: Require valid-user
1375: PerlAuthzHandler Apache::lonacc
1.1 harris41 1376: SetHandler perl-script
1.126 albertel 1377: PerlHandler Apache::loncommunicate
1.1 harris41 1378: ErrorDocument 403 /adm/login
1379: ErrorDocument 500 /adm/errorhandler
1380: </Location>
1381:
1382: <Location /adm/searchcat>
1.139 albertel 1383: AuthType LONCAPA
1.125 albertel 1384: Require valid-user
1385: PerlAuthzHandler Apache::lonacc
1.1 harris41 1386: SetHandler perl-script
1.126 albertel 1387: PerlHandler Apache::lonsearchcat
1.28 www 1388: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.129 albertel 1389: PerlCleanupHandler Apache::lonacc::cleanup
1.1 harris41 1390: ErrorDocument 403 /adm/login
1.20 www 1391: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 1392: ErrorDocument 500 /adm/errorhandler
1393: </Location>
1394:
1395: <Location /adm/navmaps>
1.139 albertel 1396: AuthType LONCAPA
1.125 albertel 1397: Require valid-user
1398: PerlAuthzHandler Apache::lonacc
1.1 harris41 1399: SetHandler perl-script
1.160 albertel 1400: PerlHandler Apache::lonnavdisplay
1.1 harris41 1401: ErrorDocument 403 /adm/login
1402: ErrorDocument 406 /adm/roles
1403: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 1404: </Location>
1405:
1406: <Location /adm/quickgrades>
1.139 albertel 1407: AuthType LONCAPA
1.125 albertel 1408: Require valid-user
1409: PerlAuthzHandler Apache::lonacc
1.26 bowersj2 1410: SetHandler perl-script
1.126 albertel 1411: PerlHandler Apache::lonquickgrades
1.26 bowersj2 1412: ErrorDocument 403 /adm/login
1413: ErrorDocument 406 /adm/roles
1414: ErrorDocument 500 /adm/errorhandler
1.1 harris41 1415: </Location>
1416:
1417: <Location /adm/groupsort>
1.139 albertel 1418: AuthType LONCAPA
1.125 albertel 1419: Require valid-user
1420: PerlAuthzHandler Apache::lonacc
1.1 harris41 1421: SetHandler perl-script
1.126 albertel 1422: PerlHandler Apache::groupsort
1.29 www 1423: PerlCleanupHandler Apache::groupsort::cleanup
1.129 albertel 1424: PerlCleanupHandler Apache::lonacc::cleanup
1.1 harris41 1425: ErrorDocument 403 /adm/login
1.251 raeburn 1426: ErrorDocument 406 /adm/roles
1.1 harris41 1427: ErrorDocument 500 /adm/errorhandler
1428: </Location>
1429:
1.197 wenzelju 1430: <Location /adm/wishlist>
1431: AuthType LONCAPA
1432: Require valid-user
1433: PerlAuthzHandler Apache::lonacc
1434: SetHandler perl-script
1.202 wenzelju 1435: PerlHandler Apache::lonwishlistdisplay
1.197 wenzelju 1436: ErrorDocument 403 /adm/login
1437: ErrorDocument 406 /adm/roles
1438: ErrorDocument 500 /adm/errorhandler
1439: </Location>
1440:
1.208 raeburn 1441: <Location /adm/setblock>
1442: AuthType LONCAPA
1443: Require valid-user
1444: PerlAuthzHandler Apache::lonacc
1445: SetHandler perl-script
1446: PerlHandler Apache::lonblockingmenu
1447: ErrorDocument 403 /adm/login
1.209 raeburn 1448: ErrorDocument 406 /adm/roles
1.208 raeburn 1449: ErrorDocument 500 /adm/errorhandler
1450: </Location>
1451:
1.186 droeschl 1452: <Location /adm/blockingstatus>
1.188 droeschl 1453: PerlAccessHandler Apache::publiccheck
1.186 droeschl 1454: AuthType LONCAPA
1455: Require valid-user
1456: PerlAuthzHandler Apache::lonacc
1.188 droeschl 1457: SetHandler perl-script
1458: PerlHandler Apache::lonblockingstatus
1.186 droeschl 1459: </Location>
1460:
1.249 raeburn 1461: <Location /adm/accesstimes>
1462: AuthType LONCAPA
1463: Require valid-user
1464: PerlAuthzHandler Apache::lonacc
1465: SetHandler perl-script
1466: PerlHandler Apache::lonaccesstimes
1467: ErrorDocument 403 /adm/login
1468: ErrorDocument 406 /adm/roles
1469: ErrorDocument 500 /adm/errorhandler
1470: </Location>
1471:
1.1 harris41 1472: <Location /adm/errorhandler>
1473: SetHandler perl-script
1.126 albertel 1474: PerlHandler Apache::lonerrorhandler
1.1 harris41 1475: </Location>
1476:
1.7 bowersj2 1477: <LocationMatch "^/adm/help/.*\.hlp$">
1.139 albertel 1478: AuthType LONCAPA
1.125 albertel 1479: Require valid-user
1.147 albertel 1480: PerlAccessHandler Apache::publiccheck
1.125 albertel 1481: PerlAuthzHandler Apache::lonacc
1.7 bowersj2 1482: SetHandler perl-script
1.126 albertel 1483: PerlHandler Apache::lonhelp
1.154 albertel 1484: ErrorDocument 500 /adm/errorhandler
1.7 bowersj2 1485: </LocationMatch>
1486:
1.90 raeburn 1487: <LocationMatch "^/adm/helpmenu">
1.139 albertel 1488: AuthType LONCAPA
1.125 albertel 1489: Require valid-user
1490: PerlAuthzHandler Apache::lonacc
1.90 raeburn 1491: SetHandler perl-script
1.126 albertel 1492: PerlHandler Apache::lonhelpmenu
1.154 albertel 1493: ErrorDocument 500 /adm/errorhandler
1.90 raeburn 1494: </LocationMatch>
1495:
1496: <LocationMatch "^/adm/support">
1.139 albertel 1497: AuthType LONCAPA
1.125 albertel 1498: Require valid-user
1499: PerlAuthzHandler Apache::lonacc
1.90 raeburn 1500: SetHandler perl-script
1.126 albertel 1501: PerlHandler Apache::lonsupportreq
1.154 albertel 1502: ErrorDocument 500 /adm/errorhandler
1.90 raeburn 1503: </LocationMatch>
1504:
1.100 raeburn 1505: <LocationMatch "^/adm/helpdesk">
1506: SetHandler perl-script
1.126 albertel 1507: PerlHandler Apache::lonsupportreq
1.154 albertel 1508: ErrorDocument 500 /adm/errorhandler
1.100 raeburn 1509: </LocationMatch>
1510:
1.221 raeburn 1511: <LocationMatch "^/adm/css/.*\.css$">
1.133 albertel 1512: SetHandler perl-script
1513: PerlHandler Apache::loncss
1.154 albertel 1514: ErrorDocument 500 /adm/errorhandler
1.133 albertel 1515: </LocationMatch>
1516:
1.155 raeburn 1517: <LocationMatch "^/adm/coursecatalog">
1518: SetHandler perl-script
1519: PerlHandler Apache::coursecatalog
1.156 albertel 1520: ErrorDocument 500 /adm/errorhandler
1.155 raeburn 1521: </LocationMatch>
1522:
1.161 raeburn 1523: <LocationMatch "^/adm/resetpw">
1524: SetHandler perl-script
1525: PerlHandler Apache::resetpw
1526: ErrorDocument 500 /adm/errorhandler
1527: </LocationMatch>
1.155 raeburn 1528:
1.173 raeburn 1529: <LocationMatch "^/adm/selfenroll">
1530: SetHandler perl-script
1531: PerlHandler Apache::selfenroll
1532: ErrorDocument 500 /adm/errorhandler
1533: </LocationMatch>
1534:
1.171 raeburn 1535: <LocationMatch "^/adm/createaccount">
1536: SetHandler perl-script
1537: PerlHandler Apache::createaccount
1538: ErrorDocument 500 /adm/errorhandler
1539: </LocationMatch>
1540:
1.165 albertel 1541: <LocationMatch "^/adm/dns">
1542: SetHandler perl-script
1543: PerlHandler Apache::londns
1544: ErrorDocument 500 /adm/errorhandler
1545: </LocationMatch>
1.164 albertel 1546:
1.219 foxr 1547: <LocationMatch "^/ajax/spellcheck">
1.218 foxr 1548: SetHandler perl-script
1.219 foxr 1549: PerlHandler Apache::spellcheck
1.218 foxr 1550: </LocationMatch>
1551:
1552:
1553:
1.1 harris41 1554: # ------------------------------------------------- Backdoor Adm Tests/Programs
1555:
1556: <Location /adm/test>
1.181 raeburn 1557: PerlAccessHandler Apache::lonstatusacc
1.1 harris41 1558: SetHandler perl-script
1.126 albertel 1559: PerlHandler Apache::lontest
1.1 harris41 1560: </Location>
1561:
1562: # ------------------------------------------------------- Shutting down a child
1563:
1.129 albertel 1564: PerlChildExitHandler Apache::lonacc::goodbye
1.1 harris41 1565:
1566: #
1567: # LON-CAPA Section (extensions to access.conf permission configuration)
1568: #
1569: # =========================================================== Directory Options
1570:
1571: # Start out with "no"
1572:
1573: <Directory />
1574: Options None
1575: AllowOverride None
1.226 raeburn 1576: <IfModule mod_authz_core.c>
1577: Require all denied
1578: </IfModule>
1579: <IfModule !mod_authz_core.c>
1580: order deny,allow
1581: deny from all
1582: </IfModule>
1.158 raeburn 1583: </Directory>
1584:
1585: # Allow uploaded files to be served
1586:
1587: <Directory "/home/httpd/lonUsers">
1588: Options Includes FollowSymLinks
1589: AllowOverride None
1.226 raeburn 1590: <IfModule mod_authz_core.c>
1591: Require all granted
1592: </IfModule>
1593: <IfModule !mod_authz_core.c>
1594: order allow,deny
1595: allow from all
1596: </IfModule>
1.158 raeburn 1597: </Directory>
1598:
1599: # Allow construction space files to be served
1600:
1601: <Directory "/home/*/public_html/" >
1602: Options Includes FollowSymLinks
1603: AllowOverride
1.226 raeburn 1604: <IfModule mod_authz_core.c>
1605: Require all granted
1606: </IfModule>
1607: <IfModule !mod_authz_core.c>
1608: order allow,deny
1609: allow from all
1610: </IfModule>
1.1 harris41 1611: </Directory>
1612:
1613: # Yes to symbolic links and server-side includes
1614:
1615: <Directory /home/httpd/html>
1616: Options Includes FollowSymLinks
1617: AllowOverride None
1.226 raeburn 1618: <IfModule mod_authz_core.c>
1619: Require all granted
1620: </IfModule>
1621: <IfModule !mod_authz_core.c>
1622: order allow,deny
1623: allow from all
1624: </IfModule>
1.1 harris41 1625: </Directory>
1626:
1627: # If it is in cgi-bin, then it can be executed as a CGI script.
1628:
1629: <Directory /home/httpd/cgi-bin>
1630: AllowOverride None
1.157 albertel 1631: Options ExecCGI FollowSymLinks
1.226 raeburn 1632: <IfModule mod_authz_core.c>
1633: Require all granted
1634: </IfModule>
1635: <IfModule !mod_authz_core.c>
1636: order allow,deny
1637: allow from all
1638: </IfModule>
1.159 raeburn 1639: </Directory>
1640:
1641: # Allow serving of files in prtspool
1642:
1643: <Directory "/home/httpd/prtspool/">
1644: Options Includes FollowSymLinks
1645: AllowOverride None
1.226 raeburn 1646: <IfModule mod_authz_core.c>
1647: Require all granted
1648: </IfModule>
1649: <IfModule !mod_authz_core.c>
1650: order allow,deny
1651: allow from all
1652: </IfModule>
1.1 harris41 1653: </Directory>
1654:
1.167 banghart 1655: # Allow serving of files in zipspool
1656:
1657: <Directory "/home/httpd/zipspool/">
1658: Options Includes FollowSymLinks
1659: AllowOverride None
1.226 raeburn 1660: <IfModule mod_authz_core.c>
1661: Require all granted
1662: </IfModule>
1663: <IfModule !mod_authz_core.c>
1664: order allow,deny
1665: allow from all
1666: </IfModule>
1.167 banghart 1667: </Directory>
1668:
1.177 raeburn 1669: # Allow serving of files in captchaspool
1670:
1671: <Directory "/home/httpd/captchaspool/">
1672: Options Includes FollowSymLinks
1673: AllowOverride None
1.226 raeburn 1674: <IfModule mod_authz_core.c>
1675: Require all granted
1676: </IfModule>
1677: <IfModule !mod_authz_core.c>
1678: order allow,deny
1679: allow from all
1680: </IfModule>
1.177 raeburn 1681: </Directory>
1682:
1.227 raeburn 1683: <DirectoryMatch "^/home/httpd/html/priv/.+/">
1684: DirectoryIndex disabled
1685: </DirectoryMatch>
1686:
1.235 raeburn 1687: <DirectoryMatch "^/home/httpd/html/res/.+/">
1688: DirectoryIndex disabled
1689: </DirectoryMatch>
1690:
1.1 harris41 1691: # ============================================================= Access Handlers
1692:
1693: # ------------------------------------------------- Allow server-status reports
1694: <Location /server-status>
1.181 raeburn 1695: PerlAccessHandler Apache::lonstatusacc
1.1 harris41 1696: SetHandler server-status
1697: </Location>
1698:
1699: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1.181 raeburn 1700: <LocationMatch "^/+lon-status/.*">
1701: PerlAccessHandler Apache::lonstatusacc
1702: ErrorDocument 406 /adm/roles
1703: ErrorDocument 500 /adm/errorhandler
1704: </LocationMatch>
1.1 harris41 1705:
1706: # ------------------- Allow access to local system documentation from localhost
1707: Alias /doc /usr/doc
1708: <Directory /usr/doc>
1709: Options Indexes FollowSymLinks
1.226 raeburn 1710: <IfModule mod_authz_host.c>
1711: Require local
1712: </IfModule>
1713: <IfModule !mod_authz_host.c>
1714: order deny,allow
1715: deny from all
1716: allow from localhost
1717: </IfModule>
1.1 harris41 1718: </Directory>
1719:
1720: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1721: # ====================================== Internal Settings / Perl Configuration
1722:
1.250 raeburn 1723: PerlSetVar lonVersion '<!-- VERSION -->'
1.1 harris41 1724: PerlSetVar lonIDsDir /home/httpd/lonIDs
1.210 raeburn 1725: PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs
1.1 harris41 1726: PerlSetVar lonTabDir /home/httpd/lonTabs
1727: PerlSetVar lonUsersDir /home/httpd/lonUsers
1728: PerlSetVar lonIconsURL /adm/lonIcons
1729: PerlSetVar londPort 5663
1.229 raeburn 1730: PerlSetVar lonSysEMail techsupport@loncapa.org
1.1 harris41 1731: PerlSetVar lonDaemons /home/httpd/perl
1.184 foxr 1732: PerlSetVar lonLib /home/httpd/lib
1.1 harris41 1733: PerlSetVar lonSockDir /home/httpd/sockets
1.164 albertel 1734: PerlSetVar lonSockCreate /home/httpd/sockets/common
1.1 harris41 1735: PerlSetVar lonDocRoot /home/httpd/html
1.98 albertel 1736: PerlSetVar lonPrtDir /home/httpd/prtspool
1.1 harris41 1737: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.166 banghart 1738: PerlSetVar lonZipDir /home/httpd/zipspool
1.177 raeburn 1739: PerlSetVar lonCaptchaDir /home/httpd/captchaspool
1740: PerlSetVar lonCaptchaDb /home/httpd/captchadb
1.168 albertel 1741: PerlSetVar lonFontsDir /home/httpd/html/adm/fonts
1.231 raeburn 1742: # & separated list of % separated fields in order of
1.119 albertel 1743: # - internal name to call it,
1744: # - regexp that it should match (done case-insensitively)
1745: # - regexp that is should not match (done case-insensitively)
1746: # - regexp that will pull out the version number into $1
1747: # - a number that describes the minimum version that has mathml support
1748: # - a number that describes the minimum number version that has unicode support
1749:
1.233 raeburn 1750: PerlSetVar lonBrowsDet explorer%msie%netscape%msie\s(\d+\.\d+)\;%9999%5&mozilla%mozilla\/[5-9]%msie%mozilla\/(\d+\.\d+)\s%9999%1&netscape%netscape%msie%netscape\/(\d+\.\d+)%9999%7&netscape%netscape\/[7-9]%shouldnotmatch%netscape\/(\d+\.\d+)%9999%7&amaya%amaya%mozilla%V(\d+\.\d+)\s%1%1&safari%safari%msie%safari\/([\d\.]+)%9999%84&chrome%chrome%chromeframe%\s+chrome\/(\d+\.\d+)%9999%1&explorer%\s+rv\:\d+\.\d+%firefox%\s+rv\:(\d+\.\d+)%9999%5&opera%\sOPR\/\d+\.\d+%shouldnotmatch%\sOPR\/(\d+\.\d+)%9999%6&opera%^Opera\/9.80\s.+Version\/\d+\.\d+$%shouldnotmatch%Version\/(\d+\.\d+)$%9999%6&opera%^Opera\/\d+\.\d+\s%Version\/\d+\.\d+$%^Opera\/(\d+\.\d+)\s%9999%6
1.119 albertel 1751:
1.105 albertel 1752: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1.43 albertel 1753: PerlSetVar lonScansDir /home/httpd/scantron
1754: PerlSetVar lonScriptTimeout 10
1.70 www 1755: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1756: PerlSetVar FAQHost http://help.lon-capa.org/
1.2 harris41 1757: # -----------------------------------------------------------------------------
1758: # NOTE: lonSqlAccess key is the password for the MySQL user
1759: # www@localhost. This value must always be "localhostkey".
1760: # The only security risk occurs when somebody logs in as 'www' on your system
1761: # (in which case you have much bigger problems than whether or not they
1762: # can access the non-authoritative loncapa database on your machine).
1763:
1764: PerlSetVar lonSqlAccess localhostkey
1765:
1.86 foxr 1766: #----------------------------------------------------------------------------
1767: #
1.79 foxr 1768: # Parameters used by secure lond/lonc
1769:
1770: #
1771: # Secure lond/lonc require ssl certificate and private
1772: # key files to function correctly. The certificate
1773: # files need not be terribly secure, but the private key files
1774: # should be set up so that only www (the lonc/lond effective user)
1775: # can read them.
1776: #
1777: # The definition below is the full path to the directory that
1778: # contains the certificate and key files:
1.82 foxr 1779:
1.79 foxr 1780: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1781:
1782: #
1783: # Secure lond/lonc require two certificates and a private host key.
1784: # The certificates required are that of the lonCAPA certificate authority
1785: # and the certificate that authority issued to this host.
1786: # lonnetCertificateAuthority is the name of the file that contains the
1787: # lonCAPA certificate authority's certificate.
1788: # lonnetCertificate is the name of the file that contains the certificate
1789: # issued to the host by the certificate authority.
1790: # Both of these variables are names of files assumed to be in
1791: # lonCertificateDirectory:
1792:
1793: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1794: PerlSetVar lonnetCertificate lonhostcert.pem
1.248 raeburn 1795: PerlSetVar lonnetHostnameCertificate lonhostnamecert.pem
1.79 foxr 1796:
1797: #
1798: # To generate the request for a certificate, and to negotiate the
1799: # initial ssl connection, the host requires a private key. This key
1800: # is created at lonCAPA install time. Did we mention above that it
1801: # should be set so that only www can read it? The variale below
1802: # is the name of the file relative to lonnetCertificateDirectory
1803: # that has the host's private key. Did we remember to tell you to
1804: # keep the permissions on that file set to rw------- (0600)?
1805: #
1806:
1807: PerlSetVar lonnetPrivateKey lonKey.pem
1808:
1809: # Did we mention that the file described above must have
1810: # permissions really locked down so that it can't be stolen?
1811:
1.86 foxr 1812: #-------------------------------------------------------------------------
1813:
1814: # Parameters that define where all the ssl stuff is that's needed
1815: # to generate certificate requests and, on a system that's a CA
1816: # the certificate authority.
1817: #
1818: # SSLProgram -> Path to the openssl command
1819: # SSLDirectory -> Directory containing ssl configuration files etc.
1820: # SSLCAConfig -> Name of the SSL config file for the certificate
1821: # Authority.
1.87 foxr 1822: # SSLCAFile -> Full path to the Certificate authority file
1823: # (on the cert manager system).
1824: # SSLEmail -> E-mail address of loncapa certificate manager.
1.86 foxr 1825: # The following are good for the loncapa redhat installs and
1826: # the loncapa certificate authority system:
1827: #
1828: PerlSetVar SSLProgram /usr/bin/openssl
1829: PerlSetVar SSLDirectory /usr/share/ssl
1830: PerlSetVar SSLCAConfig loncapaca
1.87 foxr 1831: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1.93 albertel 1832: PerlSetVar SSLEmail certificate@lon-capa.org
1.86 foxr 1833:
1834: #-------------------------------------------------------------------------
1835:
1.79 foxr 1836:
1.204 raeburn 1837: # ====================================== Include support for SSL rewrites
1838:
1839: Include conf/loncapa_rewrite.conf
1.79 foxr 1840:
1.2 harris41 1841:
1.8 harris41 1842: # ====================================== Include machine-specific configuration
1.2 harris41 1843:
1844: Include conf/loncapa.conf
1.61 albertel 1845:
1846: # ================================================= Include local configuration
1847:
1848: Include conf/loncapa_apache_local*.conf
1.1 harris41 1849:
1850: # ================================================== Initiate mod_perl starting
1851:
1852: PerlRequire conf/startup.pl
1.47 albertel 1853: <IfDefine !MODPERL2>
1.1 harris41 1854: PerlFreshRestart On
1.47 albertel 1855: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>