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