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