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