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