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