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