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