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