1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.133 2006/05/08 18:54:27 albertel Exp $
5: ##
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: LoadModule perl_module modules/libperl.so
22: <IfDefine !MODPERL2>
23: AddModule mod_perl.c
24: </IfDefine>
25:
26: <IfDefine MODPERL2>
27: PerlSetVar MODPERL2 1
28: </IfDefine>
29: # =============================================================== Miscellaneous
30:
31: ServerAdmin korte@lite.msu.edu
32: ExtendedStatus On
33: #
34: # LON-CAPA Section (extensions to srm.conf name space servicing)
35: #
36: # ===================================================================== Aliases
37:
38: Alias /prtspool/ /home/httpd/prtspool/
39: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
40:
41: # ================================================================= Directories
42:
43: # ------------------------------------------------------------- Access Handlers
44:
45: PerlTransHandler Apache::lontrans
46: PerlCleanupHandler Apache::lonacc::cleanup
47:
48: PerlAuthenHandler Apache::checkauthen
49: PerlSetVar lonOtherAuthen no
50:
51: #PerlWarn On
52: <LocationMatch "^/+res.*">
53: #AuthName "LON-CAPA Auth"
54:
55: AuthType Basic
56: Require valid-user
57:
58: PerlAccessHandler Apache::publiccheck
59: PerlAuthzHandler Apache::lonacc
60: PerlHeaderParserHandler Apache::lonrep
61: ErrorDocument 403 /adm/login
62: ErrorDocument 404 /adm/notfound.html
63: ErrorDocument 406 /adm/roles
64: ErrorDocument 500 /adm/errorhandler
65: </LocationMatch>
66:
67:
68: <LocationMatch "/.*">
69: </LocationMatch>
70:
71:
72: <LocationMatch "^/+enc.*">
73: SetHandler perl-script
74: PerlHandler Apache::lonencurl
75: ErrorDocument 403 /adm/login
76: ErrorDocument 404 /adm/notfound.html
77: ErrorDocument 406 /adm/roles
78: ErrorDocument 500 /adm/errorhandler
79: </LocationMatch>
80:
81: <Location /adm/portfolio>
82: AuthType Basic
83: Require valid-user
84: PerlAuthzHandler Apache::lonacc
85: SetHandler perl-script
86: PerlHandler Apache::portfolio
87: </Location>
88:
89: <LocationMatch "^/+userfiles.*">
90: PerlAccessHandler Apache::lontokacc
91: PerlCleanupHandler Apache::lontokacc::removefile
92: PerlCleanupHandler Apache::lonacc::cleanup
93: </LocationMatch>
94:
95: <LocationMatch "^/+uploaded.*">
96: AuthType Basic
97: Require valid-user
98: PerlAuthzHandler Apache::lonacc
99: PerlHeaderParserHandler Apache::lonuploadrep
100: ErrorDocument 403 /adm/login
101: ErrorDocument 404 /adm/notfound.html
102: ErrorDocument 406 /adm/roles
103: ErrorDocument 500 /adm/errorhandler
104: </LocationMatch>
105:
106: <LocationMatch "^/+editupload.*">
107: AuthType Basic
108: Require valid-user
109: PerlAuthzHandler Apache::lonacc
110: ErrorDocument 403 /adm/login
111: ErrorDocument 406 /adm/roles
112: ErrorDocument 500 /adm/errorhandler
113: </LocationMatch>
114:
115: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
116: PerlAccessHandler Apache::lonuploadedacc
117: </LocationMatch>
118:
119:
120: <LocationMatch "^/+uploaded/.*\.page$">
121: SetHandler perl-script
122: PerlHandler Apache::lonpage
123: </LocationMatch>
124:
125: <LocationMatch "^/+uploaded/.*\.sequence$">
126: SetHandler perl-script
127: PerlHandler Apache::lonsequence
128: </LocationMatch>
129:
130: <LocationMatch "^/+public/.*/syllabus$">
131: PerlAccessHandler Apache::publiccheck
132: AuthType Basic
133: Require valid-user
134: PerlAuthzHandler Apache::lonacc
135: SetHandler perl-script
136: PerlHandler Apache::lonsyllabus
137: ErrorDocument 404 /adm/notfound.html
138: ErrorDocument 500 /adm/errorhandler
139: </LocationMatch>
140:
141: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
142: PerlAccessHandler Apache::publiccheck
143: AuthType Basic
144: Require valid-user
145: PerlAuthzHandler Apache::lonacc
146: SetHandler perl-script
147: PerlHandler Apache::lonrss
148: ErrorDocument 404 /adm/notfound.html
149: ErrorDocument 500 /adm/errorhandler
150: </LocationMatch>
151:
152: <LocationMatch "^/adm/.*/aboutme$">
153: AuthType Basic
154: Require valid-user
155: PerlAuthzHandler Apache::lonacc
156: SetHandler perl-script
157: PerlHandler Apache::lonaboutme
158: ErrorDocument 404 /adm/notfound.html
159: ErrorDocument 406 /adm/notinit.html
160: ErrorDocument 500 /adm/errorhandler
161: </LocationMatch>
162:
163: <LocationMatch "^/adm/.*/smppg$">
164: AuthType Basic
165: Require valid-user
166: PerlAuthzHandler Apache::lonacc
167: SetHandler perl-script
168: PerlHandler Apache::lonsimplepage
169: ErrorDocument 404 /adm/notfound.html
170: ErrorDocument 406 /adm/notinit.html
171: ErrorDocument 500 /adm/errorhandler
172: </LocationMatch>
173:
174: <LocationMatch "^/adm/.*/grppg$">
175: AuthType Basic
176: Require valid-user
177: PerlAuthzHandler Apache::lonacc
178: SetHandler perl-script
179: PerlHandler Apache::lonsimplepage
180: ErrorDocument 404 /adm/notfound.html
181: ErrorDocument 406 /adm/notinit.html
182: ErrorDocument 500 /adm/errorhandler
183: </LocationMatch>
184:
185: <LocationMatch "^/adm/.*/bulletinboard$">
186: AuthType Basic
187: Require valid-user
188: PerlAuthzHandler Apache::lonacc
189: SetHandler perl-script
190: PerlHandler Apache::londatecheck
191: PerlHandler Apache::lonbulletin
192: ErrorDocument 404 /adm/notfound.html
193: ErrorDocument 406 /adm/notinit.html
194: ErrorDocument 500 /adm/errorhandler
195: </LocationMatch>
196:
197: <LocationMatch "\.problem/smpedit$">
198: AuthType Basic
199: Require valid-user
200: PerlAuthzHandler Apache::lonacc
201: SetHandler perl-script
202: PerlHandler Apache::lonsimpleproblemedit
203: ErrorDocument 404 /adm/notfound.html
204: ErrorDocument 406 /adm/notinit.html
205: ErrorDocument 500 /adm/errorhandler
206: </LocationMatch>
207:
208: <LocationMatch "^/+priv.*">
209: AuthType Basic
210: Require valid-user
211: PerlAuthzHandler Apache::loncacc
212: SetHandler perl-script
213: PerlHandler Apache::lonconstruct
214: ErrorDocument 403 /adm/login
215: ErrorDocument 404 /adm/notfound.html
216: ErrorDocument 406 /adm/unauthorized
217: ErrorDocument 500 /adm/errorhandler
218: </LocationMatch>
219:
220: <LocationMatch "^/+raw.*">
221: PerlAccessHandler Apache::lonracc
222: </LocationMatch>
223:
224: <LocationMatch "^/+\~.*">
225: AuthType Basic
226: Require valid-user
227: PerlAuthzHandler Apache::loncacc
228: ErrorDocument 403 /adm/login
229: ErrorDocument 404 /adm/notfound.html
230: ErrorDocument 406 /adm/unauthorized
231: ErrorDocument 500 /adm/errorhandler
232: AllowOverride None
233: </LocationMatch>
234:
235: <LocationMatch "^/adm/helper/.*\.helper$">
236: AuthType Basic
237: Require valid-user
238: PerlAuthzHandler Apache::lonacc
239: SetHandler perl-script
240: PerlHandler Apache::lonhelper
241: ErrorDocument 403 /adm/login
242: ErrorDocument 404 /adm/notfound.html
243: ErrorDocument 406 /adm/unauthorized
244: ErrorDocument 500 /adm/errorhandler
245: </LocationMatch>
246:
247: <LocationMatch "/prtspool">
248: AuthType Basic
249: Require valid-user
250: PerlAuthzHandler Apache::lonacc
251: ErrorDocument 403 /adm/login
252: ErrorDocument 404 /adm/notfound.html
253: ErrorDocument 406 /adm/roles
254: ErrorDocument 413 /adm/overloaded.txt
255: ErrorDocument 500 /adm/errorhandler
256: </LocationMatch>
257: # ------------------------------------------------------------------------- RAT
258:
259: <LocationMatch "^/\~.*\.sequence$">
260: SetHandler perl-script
261: PerlHandler Apache::lonratedt
262: </LocationMatch>
263:
264: <LocationMatch "^/\~.*\.page$">
265: SetHandler perl-script
266: PerlHandler Apache::lonratedt
267: </LocationMatch>
268:
269: <LocationMatch "^/\~.*\/ratserver$">
270: SetHandler perl-script
271: PerlHandler Apache::lonratsrv
272: </LocationMatch>
273:
274: <LocationMatch "^/\~.*\/adveditmenu$">
275: SetHandler perl-script
276: PerlHandler Apache::lonratmenu
277: </LocationMatch>
278:
279: <Location /adm/ratparms>
280: AuthType Basic
281: Require valid-user
282: PerlAuthzHandler Apache::lonacc
283: SetHandler perl-script
284: PerlHandler Apache::lonratparms
285: ErrorDocument 403 /adm/login
286: ErrorDocument 500 /adm/errorhandler
287: </Location>
288:
289: # --------------------------------------------- Resource Space Content Handlers
290:
291: <LocationMatch "^/+res.*/$">
292: SetHandler perl-script
293: PerlHandler Apache::lonindexer
294: PerlCleanupHandler Apache::lonindexer::cleanup
295: PerlCleanupHandler Apache::lonacc::cleanup
296: </LocationMatch>
297:
298: <LocationMatch "^/+(res|\~).*\.tex$">
299: SetHandler perl-script
300: PerlHandler Apache::lontex
301: </LocationMatch>
302:
303: <LocationMatch "^/+res/.*\.page$">
304: SetHandler perl-script
305: PerlHandler Apache::lonpage
306: </LocationMatch>
307:
308: <LocationMatch "^/+res/.*\.sequence$">
309: SetHandler perl-script
310: PerlHandler Apache::lonsequence
311: </LocationMatch>
312:
313: <LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$">
314: PerlAccessHandler Apache::publiccheck
315: SetHandler perl-script
316: PerlHandler Apache::lonmeta
317: ErrorDocument 413 /adm/overloaded.txt
318: </LocationMatch>
319:
320: <LocationMatch "^/adm/bombs/">
321: AuthType Basic
322: Require valid-user
323: SetHandler perl-script
324: PerlAuthzHandler Apache::lonacc
325: PerlHandler Apache::lonmeta
326: </LocationMatch>
327:
328:
329:
330: <LocationMatch "^/+(res|\~).*\.rights$">
331: SetHandler perl-script
332: PerlHandler Apache::lonrights
333: </LocationMatch>
334:
335: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
336: SetHandler perl-script
337: PerlHandler Apache::londatecheck
338: PerlHandler Apache::lonxml
339: </LocationMatch>
340:
341: <LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
342: SetHandler perl-script
343: PerlHandler Apache::lonhomework
344: </LocationMatch>
345:
346: <LocationMatch "^/adm/wrapper/">
347: AuthType Basic
348: Require valid-user
349: PerlAuthzHandler Apache::lonacc
350: SetHandler perl-script
351: PerlHandler Apache::lonwrapper
352: ErrorDocument 403 /adm/login
353: ErrorDocument 500 /adm/errorhandler
354: </LocationMatch>
355:
356: <LocationMatch "^/adm/source">
357: AuthType Basic
358: Require valid-user
359: PerlAuthzHandler Apache::lonacc
360: SetHandler perl-script
361: PerlHandler Apache::lonsource
362: ErrorDocument 403 /adm/login
363: ErrorDocument 406 /adm/roles
364: ErrorDocument 500 /adm/errorhandler
365: </LocationMatch>
366:
367:
368: <LocationMatch "^/adm/localize/">
369: AuthType Basic
370: Require valid-user
371: PerlAuthzHandler Apache::lonacc
372: SetHandler perl-script
373: PerlHandler Apache::lonlocalize
374: ErrorDocument 403 /adm/login
375: ErrorDocument 500 /adm/errorhandler
376: </LocationMatch>
377:
378: # -------------------------------------------------------------- Admin Programs
379:
380: <Location /adm/randomlabel.png>
381: AuthType Basic
382: Require valid-user
383: PerlAuthzHandler Apache::lonacc
384: SetHandler perl-script
385: PerlHandler Apache::randomlylabel
386: ErrorDocument 403 /adm/login
387: ErrorDocument 500 /adm/errorhandler
388: </Location>
389:
390: <Location /adm/imagechoice>
391: AuthType Basic
392: Require valid-user
393: PerlAuthzHandler Apache::lonacc
394: SetHandler perl-script
395: PerlHandler Apache::imagechoice
396: ErrorDocument 403 /adm/login
397: ErrorDocument 500 /adm/errorhandler
398: </Location>
399:
400: <Location /adm/statistics>
401: AuthType Basic
402: Require valid-user
403: PerlAuthzHandler Apache::lonacc
404: SetHandler perl-script
405: PerlHandler Apache::lonstatistics
406: ErrorDocument 403 /adm/login
407: ErrorDocument 413 /adm/overloaded.txt
408: ErrorDocument 500 /adm/errorhandler
409: </Location>
410:
411: <Location /adm/trackstudent>
412: AuthType Basic
413: Require valid-user
414: PerlAuthzHandler Apache::lonacc
415: SetHandler perl-script
416: PerlHandler Apache::lontrackstudent
417: ErrorDocument 403 /adm/login
418: ErrorDocument 413 /adm/overloaded.txt
419: ErrorDocument 500 /adm/errorhandler
420: </Location>
421:
422: <Location /adm/roles>
423: AuthType Basic
424: Require valid-user
425: PerlAuthzHandler Apache::lonacc
426: SetHandler perl-script
427: PerlHandler Apache::lonroles
428: ErrorDocument 403 /adm/login
429: ErrorDocument 500 /adm/errorhandler
430: </Location>
431:
432: <Location /adm/menu>
433: AuthType Basic
434: Require valid-user
435: PerlAuthzHandler Apache::lonacc
436: SetHandler perl-script
437: PerlHandler Apache::lonmainmenu
438: ErrorDocument 403 /adm/login
439: ErrorDocument 500 /adm/errorhandler
440: </Location>
441:
442: <Location /adm/remote>
443: AuthType Basic
444: Require valid-user
445: PerlAuthzHandler Apache::lonacc
446: SetHandler perl-script
447: PerlHandler Apache::lonremote
448: ErrorDocument 403 /adm/login
449: ErrorDocument 500 /adm/errorhandler
450: </Location>
451:
452: <Location /adm/pickstudent>
453: AuthType Basic
454: Require valid-user
455: PerlAuthzHandler Apache::lonacc
456: SetHandler perl-script
457: PerlHandler Apache::lonpickstudent
458: ErrorDocument 403 /adm/login
459: ErrorDocument 500 /adm/errorhandler
460: </Location>
461:
462: <Location /adm/pickcourse>
463: AuthType Basic
464: Require valid-user
465: PerlAuthzHandler Apache::lonacc
466: SetHandler perl-script
467: PerlHandler Apache::lonpickcourse
468: ErrorDocument 403 /adm/login
469: ErrorDocument 500 /adm/errorhandler
470: </Location>
471:
472: <Location /adm/pickcode>
473: AuthType Basic
474: Require valid-user
475: PerlAuthzHandler Apache::lonacc
476: SetHandler perl-script
477: PerlHandler Apache::lonpickcode
478: ErrorDocument 403 /adm/login
479: ErrorDocument 500 /adm/errorhandler
480: </Location>
481:
482: <Location /adm/login>
483: SetHandler perl-script
484: PerlHandler Apache::lonlogin
485: </Location>
486:
487: <Location /adm/logout>
488: AuthType Basic
489: Require valid-user
490: PerlAuthzHandler Apache::lonacc
491: SetHandler perl-script
492: PerlHandler Apache::lonlogout
493: ErrorDocument 403 /adm/login
494: </Location>
495:
496: <Location /adm/switchserver>
497: AuthType Basic
498: Require valid-user
499: PerlAuthzHandler Apache::lonacc
500: SetHandler perl-script
501: PerlHandler Apache::switchserver
502: ErrorDocument 403 /adm/login
503: </Location>
504:
505: <Location /adm/authenticate>
506: SetHandler perl-script
507: PerlHandler Apache::lonauth
508: </Location>
509:
510: <Location /adm/migrateuser>
511: SetHandler perl-script
512: PerlHandler Apache::migrateuser
513: </Location>
514:
515: <Location /adm/annotations>
516: AuthType Basic
517: Require valid-user
518: PerlAuthzHandler Apache::lonacc
519: SetHandler perl-script
520: PerlHandler Apache::admannotations
521: ErrorDocument 403 /adm/login
522: ErrorDocument 500 /adm/errorhandler
523: </Location>
524:
525: <Location /adm/spellcheck>
526: AuthType Basic
527: Require valid-user
528: PerlAuthzHandler Apache::lonacc
529: SetHandler perl-script
530: PerlHandler Apache::lonspeller
531: ErrorDocument 403 /adm/login
532: ErrorDocument 500 /adm/errorhandler
533: </Location>
534:
535: <Location /adm/bookmarks>
536: AuthType Basic
537: Require valid-user
538: PerlAuthzHandler Apache::lonacc
539: SetHandler perl-script
540: PerlHandler Apache::admbookmarks
541: ErrorDocument 403 /adm/login
542: ErrorDocument 500 /adm/errorhandler
543: </Location>
544:
545: <Location /adm/flip>
546: AuthType Basic
547: Require valid-user
548: PerlAuthzHandler Apache::lonacc
549: SetHandler perl-script
550: PerlHandler Apache::lonpageflip
551: PerlCleanupHandler Apache::lonpageflip::cleanup
552: PerlCleanupHandler Apache::lonacc::cleanup
553: ErrorDocument 406 /adm/roles
554: ErrorDocument 403 /adm/login
555: ErrorDocument 500 /adm/errorhandler
556: </Location>
557:
558: <Location /adm/ambiguous>
559: AuthType Basic
560: Require valid-user
561: PerlAuthzHandler Apache::lonacc
562: SetHandler perl-script
563: PerlHandler Apache::lonambiguous
564: PerlCleanupHandler Apache::lonambiguous::cleanup
565: PerlCleanupHandler Apache::lonacc::cleanup
566: ErrorDocument 403 /adm/login
567: ErrorDocument 500 /adm/errorhandler
568: </Location>
569:
570: <Location /adm/email>
571: AuthType Basic
572: Require valid-user
573: PerlAuthzHandler Apache::lonacc
574: SetHandler perl-script
575: PerlHandler Apache::lonmsgdisplay
576: ErrorDocument 403 /adm/login
577: ErrorDocument 500 /adm/errorhandler
578: </Location>
579:
580: <Location /adm/notify>
581: AuthType Basic
582: Require valid-user
583: PerlAuthzHandler Apache::lonacc
584: SetHandler perl-script
585: PerlHandler Apache::lonnotify
586: ErrorDocument 403 /adm/login
587: ErrorDocument 500 /adm/errorhandler
588: </Location>
589:
590: <Location /adm/parmset>
591: AuthType Basic
592: Require valid-user
593: PerlAuthzHandler Apache::lonacc
594: SetHandler perl-script
595: PerlHandler Apache::lonparmset
596: ErrorDocument 403 /adm/login
597: ErrorDocument 406 /adm/roles
598: ErrorDocument 500 /adm/errorhandler
599: </Location>
600:
601: <Location /adm/slotrequest>
602: AuthType Basic
603: Require valid-user
604: PerlAuthzHandler Apache::lonacc
605: SetHandler perl-script
606: PerlHandler Apache::slotrequest
607: ErrorDocument 403 /adm/login
608: ErrorDocument 406 /adm/roles
609: ErrorDocument 500 /adm/errorhandler
610: </Location>
611:
612: <Location /adm/wizard>
613: AuthType Basic
614: Require valid-user
615: PerlAuthzHandler Apache::lonacc
616: SetHandler perl-script
617: PerlHandler Apache::lonwizard
618: ErrorDocument 403 /adm/login
619: ErrorDocument 406 /adm/roles
620: ErrorDocument 500 /adm/errorhandler
621: </Location>
622:
623: <Location /adm/grades>
624: AuthType Basic
625: Require valid-user
626: PerlAuthzHandler Apache::lonacc
627: SetHandler perl-script
628: PerlHandler Apache::grades
629: ErrorDocument 403 /adm/login
630: ErrorDocument 406 /adm/roles
631: ErrorDocument 500 /adm/errorhandler
632: </Location>
633:
634: <Location /adm/createcourse>
635: AuthType Basic
636: Require valid-user
637: PerlAuthzHandler Apache::lonacc
638: SetHandler perl-script
639: PerlHandler Apache::loncreatecourse
640: ErrorDocument 403 /adm/login
641: ErrorDocument 406 /adm/roles
642: ErrorDocument 500 /adm/errorhandler
643: </Location>
644:
645: <Location /adm/modifycourse>
646: AuthType Basic
647: Require valid-user
648: PerlAuthzHandler Apache::lonacc
649: SetHandler perl-script
650: PerlHandler Apache::lonmodifycourse
651: ErrorDocument 403 /adm/login
652: ErrorDocument 406 /adm/roles
653: ErrorDocument 500 /adm/errorhandler
654: </Location>
655:
656: <Location /adm/createuser>
657: AuthType Basic
658: Require valid-user
659: PerlAuthzHandler Apache::lonacc
660: SetHandler perl-script
661: PerlHandler Apache::loncreateuser
662: ErrorDocument 403 /adm/login
663: ErrorDocument 406 /adm/roles
664: ErrorDocument 500 /adm/errorhandler
665: </Location>
666:
667: <Location /adm/publish>
668: AuthType Basic
669: Require valid-user
670: PerlAuthzHandler Apache::lonacc
671: SetHandler perl-script
672: PerlHandler Apache::lonpublisher
673: ErrorDocument 403 /adm/login
674: ErrorDocument 404 /adm/notfound.html
675: ErrorDocument 406 /adm/unauthorized
676: ErrorDocument 500 /adm/errorhandler
677: </Location>
678:
679: <LocationMatch "^/+\~.*/$">
680: AuthType Basic
681: Require valid-user
682: PerlAuthzHandler Apache::loncacc
683: SetHandler perl-script
684: PerlHandler Apache::lonpubdir
685: ErrorDocument 403 /adm/login
686: ErrorDocument 404 /adm/notfound.html
687: ErrorDocument 406 /adm/unauthorized
688: ErrorDocument 500 /adm/errorhandler
689: </LocationMatch>
690:
691: <Location /adm/pubdir>
692: AuthType Basic
693: Require valid-user
694: PerlAuthzHandler Apache::lonacc
695: SetHandler perl-script
696: PerlHandler Apache::lonpubdir
697: ErrorDocument 403 /adm/login
698: ErrorDocument 404 /adm/notfound.html
699: ErrorDocument 406 /adm/unauthorized
700: ErrorDocument 500 /adm/errorhandler
701: </Location>
702:
703: <Location /adm/unauthorized>
704: AuthType Basic
705: Require valid-user
706: PerlAuthzHandler Apache::lonacc
707: SetHandler perl-script
708: PerlHandler Apache::lonunauthorized
709: ErrorDocument 403 /adm/login
710: ErrorDocument 404 /adm/notfound.html
711: ErrorDocument 500 /adm/errorhandler
712: </Location>
713:
714: <Location /adm/retrieve>
715: AuthType Basic
716: Require valid-user
717: PerlAuthzHandler Apache::lonacc
718: SetHandler perl-script
719: PerlHandler Apache::lonretrieve
720: ErrorDocument 403 /adm/login
721: ErrorDocument 404 /adm/notfound.html
722: ErrorDocument 406 /adm/unauthorized
723: ErrorDocument 500 /adm/errorhandler
724: </Location>
725:
726: <Location /adm/cleanup>
727: AuthType Basic
728: Require valid-user
729: PerlAuthzHandler Apache::lonacc
730: SetHandler perl-script
731: PerlHandler Apache::loncleanup
732: ErrorDocument 403 /adm/login
733: ErrorDocument 404 /adm/notfound.html
734: ErrorDocument 406 /adm/unauthorized
735: ErrorDocument 500 /adm/errorhandler
736: </Location>
737:
738: <Location /adm/cfile>
739: AuthType Basic
740: Require valid-user
741: PerlAuthzHandler Apache::lonacc
742: SetHandler perl-script
743: PerlHandler Apache::loncfile
744: ErrorDocument 403 /adm/login
745: ErrorDocument 404 /adm/notfound.html
746: ErrorDocument 406 /adm/unauthorized
747: ErrorDocument 500 /adm/errorhandler
748: </Location>
749:
750: <Location /adm/diff>
751: AuthType Basic
752: Require valid-user
753: PerlAuthzHandler Apache::lonacc
754: SetHandler perl-script
755: PerlHandler Apache::londiff
756: ErrorDocument 403 /adm/login
757: ErrorDocument 404 /adm/notfound.html
758: ErrorDocument 406 /adm/unauthorized
759: ErrorDocument 500 /adm/errorhandler
760: </Location>
761:
762: <Location /adm/upload>
763: AuthType Basic
764: Require valid-user
765: PerlAuthzHandler Apache::lonacc
766: SetHandler perl-script
767: PerlHandler Apache::lonupload
768: ErrorDocument 403 /adm/login
769: ErrorDocument 404 /adm/notfound.html
770: ErrorDocument 406 /adm/unauthorized
771: ErrorDocument 500 /adm/errorhandler
772: </Location>
773:
774: <Location /adm/imsimport>
775: AuthType Basic
776: Require valid-user
777: PerlAuthzHandler Apache::lonacc
778: SetHandler perl-script
779: PerlHandler Apache::imsimport
780: ErrorDocument 403 /adm/login
781: ErrorDocument 404 /adm/notfound.html
782: ErrorDocument 406 /adm/unauthorized
783: ErrorDocument 500 /adm/errorhandler
784: </Location>
785:
786: <Location /adm/testbank>
787: AuthType Basic
788: Require valid-user
789: PerlAuthzHandler Apache::lonacc
790: SetHandler perl-script
791: PerlHandler Apache::testbankimport
792: ErrorDocument 403 /adm/login
793: ErrorDocument 404 /adm/notfound.html
794: ErrorDocument 406 /adm/unauthorized
795: ErrorDocument 500 /adm/errorhandler
796: </Location>
797:
798: <Location /adm/assesscalc>
799: AuthType Basic
800: Require valid-user
801: PerlAuthzHandler Apache::lonacc
802: SetHandler perl-script
803: PerlHandler Apache::lonspreadsheet
804: ErrorDocument 403 /adm/login
805: ErrorDocument 406 /adm/roles
806: ErrorDocument 413 /adm/overloaded.txt
807: ErrorDocument 500 /adm/errorhandler
808: </Location>
809:
810: <Location /adm/studentcalc>
811: AuthType Basic
812: Require valid-user
813: PerlAuthzHandler Apache::lonacc
814: SetHandler perl-script
815: PerlHandler Apache::lonspreadsheet
816: ErrorDocument 403 /adm/login
817: ErrorDocument 406 /adm/roles
818: ErrorDocument 413 /adm/overloaded.txt
819: ErrorDocument 500 /adm/errorhandler
820: </Location>
821:
822: <Location /adm/classcalc>
823: AuthType Basic
824: Require valid-user
825: PerlAuthzHandler Apache::lonacc
826: SetHandler perl-script
827: PerlHandler Apache::lonspreadsheet
828: ErrorDocument 403 /adm/login
829: ErrorDocument 406 /adm/roles
830: ErrorDocument 413 /adm/overloaded.txt
831: ErrorDocument 500 /adm/errorhandler
832: </Location>
833:
834: <Location /adm/dropadd>
835: AuthType Basic
836: Require valid-user
837: PerlAuthzHandler Apache::lonacc
838: SetHandler perl-script
839: PerlHandler Apache::londropadd
840: ErrorDocument 403 /adm/login
841: ErrorDocument 406 /adm/roles
842: ErrorDocument 500 /adm/errorhandler
843: </Location>
844:
845: <Location /adm/viewclasslist>
846: AuthType Basic
847: Require valid-user
848: PerlAuthzHandler Apache::lonacc
849: SetHandler perl-script
850: PerlHandler Apache::lonviewclasslist
851: ErrorDocument 403 /adm/login
852: ErrorDocument 406 /adm/roles
853: ErrorDocument 500 /adm/errorhandler
854: </Location>
855:
856: <Location /adm/coursegroups>
857: AuthType Basic
858: Require valid-user
859: PerlAuthzHandler Apache::lonacc
860: SetHandler perl-script
861: PerlHandler Apache::loncoursegroups
862: ErrorDocument 403 /adm/login
863: ErrorDocument 406 /adm/roles
864: ErrorDocument 500 /adm/errorhandler
865: </Location>
866:
867: <Location /adm/whatsnew>
868: AuthType Basic
869: Require valid-user
870: PerlAuthzHandler Apache::lonacc
871: SetHandler perl-script
872: PerlHandler Apache::lonwhatsnew
873: ErrorDocument 403 /adm/login
874: ErrorDocument 406 /adm/roles
875: ErrorDocument 500 /adm/errorhandler
876: </Location>
877:
878: <Location /adm/populate>
879: AuthType Basic
880: Require valid-user
881: PerlAuthzHandler Apache::lonacc
882: SetHandler perl-script
883: PerlHandler Apache::lonpopulate
884: ErrorDocument 403 /adm/login
885: ErrorDocument 406 /adm/roles
886: ErrorDocument 500 /adm/errorhandler
887: </Location>
888:
889: <Location /adm/managekeys>
890: AuthType Basic
891: Require valid-user
892: PerlAuthzHandler Apache::lonacc
893: SetHandler perl-script
894: PerlHandler Apache::lonmanagekeys
895: ErrorDocument 403 /adm/login
896: ErrorDocument 406 /adm/roles
897: ErrorDocument 500 /adm/errorhandler
898: </Location>
899:
900: <Location /adm/printout>
901: AuthType Basic
902: Require valid-user
903: PerlAuthzHandler Apache::lonacc
904: SetHandler perl-script
905: PerlHandler Apache::lonprintout
906: ErrorDocument 403 /adm/login
907: ErrorDocument 413 /adm/overloaded.txt
908: ErrorDocument 500 /adm/errorhandler
909: </Location>
910:
911: <Location /adm/feedback>
912: AuthType Basic
913: Require valid-user
914: PerlAuthzHandler Apache::lonacc
915: SetHandler perl-script
916: PerlHandler Apache::lonfeedback
917: ErrorDocument 403 /adm/login
918: ErrorDocument 500 /adm/errorhandler
919: </Location>
920:
921: <Location /adm/coursedocs>
922: AuthType Basic
923: Require valid-user
924: PerlAuthzHandler Apache::lonacc
925: SetHandler perl-script
926: PerlHandler Apache::londocs
927: PerlCleanupHandler Apache::londocs::untiehash
928: PerlCleanupHandler Apache::lonacc::cleanup
929: ErrorDocument 403 /adm/login
930: ErrorDocument 500 /adm/errorhandler
931: </Location>
932:
933: <Location /adm/imsimportdocs>
934: AuthType Basic
935: Require valid-user
936: PerlAuthzHandler Apache::lonacc
937: SetHandler perl-script
938: PerlHandler Apache::imsimportdocs
939: ErrorDocument 403 /adm/login
940: ErrorDocument 500 /adm/errorhandler
941: </Location>
942:
943: <Location /adm/announcements>
944: AuthType Basic
945: Require valid-user
946: PerlAuthzHandler Apache::lonacc
947: SetHandler perl-script
948: PerlHandler Apache::lonannounce
949: ErrorDocument 403 /adm/login
950: ErrorDocument 500 /adm/errorhandler
951: </Location>
952:
953: <Location /adm/chat>
954: AuthType Basic
955: Require valid-user
956: PerlAuthzHandler Apache::lonacc
957: SetHandler perl-script
958: PerlHandler Apache::lonchat
959: ErrorDocument 500 /adm/errorhandler
960: </Location>
961:
962: <Location /adm/chatfetch>
963: AuthType Basic
964: Require valid-user
965: PerlAuthzHandler Apache::lonacc
966: SetHandler perl-script
967: PerlHandler Apache::lonchatfetch
968: ErrorDocument 413 /adm/overloaded.txt
969: ErrorDocument 500 /adm/errorhandler
970: </Location>
971:
972: <Location /adm/evaluate>
973: AuthType Basic
974: Require valid-user
975: PerlAuthzHandler Apache::lonacc
976: SetHandler perl-script
977: PerlHandler Apache::lonevaluate
978: ErrorDocument 403 /adm/login
979: ErrorDocument 500 /adm/errorhandler
980: </Location>
981:
982: <Location /adm/preferences>
983: AuthType Basic
984: Require valid-user
985: PerlAuthzHandler Apache::lonacc
986: SetHandler perl-script
987: PerlHandler Apache::lonpreferences
988: ErrorDocument 403 /adm/login
989: ErrorDocument 500 /adm/errorhandler
990: </Location>
991:
992: <Location /adm/communicate>
993: AuthType Basic
994: Require valid-user
995: PerlAuthzHandler Apache::lonacc
996: SetHandler perl-script
997: PerlHandler Apache::loncommunicate
998: ErrorDocument 403 /adm/login
999: ErrorDocument 500 /adm/errorhandler
1000: </Location>
1001:
1002: <Location /adm/searchcat>
1003: AuthType Basic
1004: Require valid-user
1005: PerlAuthzHandler Apache::lonacc
1006: SetHandler perl-script
1007: PerlHandler Apache::lonsearchcat
1008: PerlCleanupHandler Apache::lonsearchcat::cleanup
1009: PerlCleanupHandler Apache::lonacc::cleanup
1010: ErrorDocument 403 /adm/login
1011: ErrorDocument 413 /adm/overloaded.txt
1012: ErrorDocument 500 /adm/errorhandler
1013: </Location>
1014:
1015: <Location /adm/navmaps>
1016: AuthType Basic
1017: Require valid-user
1018: PerlAuthzHandler Apache::lonacc
1019: SetHandler perl-script
1020: PerlHandler Apache::lonnavmaps
1021: ErrorDocument 403 /adm/login
1022: ErrorDocument 406 /adm/roles
1023: ErrorDocument 500 /adm/errorhandler
1024: </Location>
1025:
1026: <Location /adm/quickgrades>
1027: AuthType Basic
1028: Require valid-user
1029: PerlAuthzHandler Apache::lonacc
1030: SetHandler perl-script
1031: PerlHandler Apache::lonquickgrades
1032: ErrorDocument 403 /adm/login
1033: ErrorDocument 406 /adm/roles
1034: ErrorDocument 500 /adm/errorhandler
1035: </Location>
1036:
1037: <Location /adm/groupsort>
1038: AuthType Basic
1039: Require valid-user
1040: PerlAuthzHandler Apache::lonacc
1041: SetHandler perl-script
1042: PerlHandler Apache::groupsort
1043: PerlCleanupHandler Apache::groupsort::cleanup
1044: PerlCleanupHandler Apache::lonacc::cleanup
1045: ErrorDocument 403 /adm/login
1046: ErrorDocument 500 /adm/errorhandler
1047: </Location>
1048:
1049: <Location /adm/errorhandler>
1050: SetHandler perl-script
1051: PerlHandler Apache::lonerrorhandler
1052: </Location>
1053:
1054: <LocationMatch "^/adm/help/.*\.hlp$">
1055: AuthType Basic
1056: Require valid-user
1057: PerlAuthzHandler Apache::lonacc
1058: SetHandler perl-script
1059: PerlHandler Apache::lonhelp
1060: </LocationMatch>
1061:
1062: <LocationMatch "^/adm/helpmenu">
1063: AuthType Basic
1064: Require valid-user
1065: PerlAuthzHandler Apache::lonacc
1066: SetHandler perl-script
1067: PerlHandler Apache::lonhelpmenu
1068: </LocationMatch>
1069:
1070: <LocationMatch "^/adm/support">
1071: AuthType Basic
1072: Require valid-user
1073: PerlAuthzHandler Apache::lonacc
1074: SetHandler perl-script
1075: PerlHandler Apache::lonsupportreq
1076: </LocationMatch>
1077:
1078: <LocationMatch "^/adm/helpdesk">
1079: SetHandler perl-script
1080: PerlHandler Apache::lonsupportreq
1081: </LocationMatch>
1082:
1083: <LocationMatch "^/adm/css">
1084: AuthType Basic
1085: Require valid-user
1086: PerlAuthzHandler Apache::lonacc
1087: SetHandler perl-script
1088: PerlHandler Apache::loncss
1089: </LocationMatch>
1090:
1091: # ------------------------------------------------- Backdoor Adm Tests/Programs
1092:
1093: <Location /cgi-bin/loncron.pl>
1094: AuthName "LON-CAPA Network Administration"
1095: AuthType Basic
1096: AuthUserFile /home/httpd/lonTabs/htpasswd
1097: require user lonadm
1098: </Location>
1099:
1100: <Location /cgi-bin/userstatus.pl>
1101: AuthName "LON-CAPA Network Administration"
1102: AuthType Basic
1103: AuthUserFile /home/httpd/lonTabs/htpasswd
1104: require user lonadm
1105: </Location>
1106:
1107: <Location /cgi-bin/lonversions.pl>
1108: AuthName "LON-CAPA Network Administration"
1109: AuthType Basic
1110: AuthUserFile /home/httpd/lonTabs/htpasswd
1111: require user lonadm
1112: </Location>
1113:
1114: <Location /cgi-bin/clusterstatus.pl>
1115: AuthName "LON-CAPA Network Administration"
1116: AuthType Basic
1117: AuthUserFile /home/httpd/lonTabs/htpasswd
1118: require user lonadm
1119: </Location>
1120:
1121: <Location /cgi-bin/metadata_keywords.pl>
1122: AuthName "LON-CAPA Network Administration"
1123: AuthType Basic
1124: AuthUserFile /home/httpd/lonTabs/htpasswd
1125: require user lonadm
1126: </Location>
1127:
1128: <Location /cgi-bin/metadata_harvest.pl>
1129: AuthName "harvest"
1130: AuthType Basic
1131: AuthUserFile /home/httpd/lonTabs/htpasswd
1132: require user reaper
1133: </Location>
1134:
1135: <Location /cgi-bin/takeoffline.pl>
1136: AuthName "Offline"
1137: AuthType Basic
1138: AuthUserFile /home/httpd/lonTabs/htpasswd
1139: require user offline
1140: </Location>
1141:
1142: <Location /cgi-bin/takeonline.pl>
1143: AuthName "Offline"
1144: AuthType Basic
1145: AuthUserFile /home/httpd/lonTabs/htpasswd
1146: require user offline
1147: </Location>
1148:
1149: <Location /adm/test>
1150: AuthName "LON-CAPA Network Administration"
1151: AuthType Basic
1152: AuthUserFile /home/httpd/lonTabs/htpasswd
1153: require user lonadm
1154: SetHandler perl-script
1155: PerlAuthzHandler Apache::lonacc
1156: PerlHandler Apache::lontest
1157: </Location>
1158:
1159: # ------------------------------------------------------- Shutting down a child
1160:
1161: PerlChildExitHandler Apache::lonacc::goodbye
1162:
1163: #
1164: # LON-CAPA Section (extensions to access.conf permission configuration)
1165: #
1166: # =========================================================== Directory Options
1167:
1168: # Start out with "no"
1169:
1170: <Directory />
1171: Options None
1172: AllowOverride None
1173: </Directory>
1174:
1175: # Yes to symbolic links and server-side includes
1176:
1177: <Directory /home/httpd/html>
1178: Options Includes FollowSymLinks
1179: AllowOverride None
1180: order allow,deny
1181: allow from all
1182: </Directory>
1183:
1184: # If it is in cgi-bin, then it can be executed as a CGI script.
1185:
1186: <Directory /home/httpd/cgi-bin>
1187: AllowOverride None
1188: Options ExecCGI
1189: </Directory>
1190:
1191: # ============================================================= Access Handlers
1192:
1193: # ------------------------------------------------- Allow server-status reports
1194: <Location /server-status>
1195: SetHandler server-status
1196: AuthName "LON-CAPA Network Administration"
1197: AuthType Basic
1198: AuthUserFile /home/httpd/lonTabs/htpasswd
1199: require user lonadm
1200: </Location>
1201:
1202: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1203: <Location /lon-status>
1204: AuthName "LON-CAPA Network Administration"
1205: AuthType Basic
1206: AuthUserFile /home/httpd/lonTabs/htpasswd
1207: require user lonadm
1208: </Location>
1209:
1210: # ------------------- Allow access to local system documentation from localhost
1211: Alias /doc /usr/doc
1212: <Directory /usr/doc>
1213: order deny,allow
1214: deny from all
1215: allow from localhost
1216: Options Indexes FollowSymLinks
1217: </Directory>
1218:
1219: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1220: # ====================================== Internal Settings / Perl Configuration
1221:
1222: PerlSetVar lonVersion '<!-- VERSION -->'
1223: PerlSetVar lonIDsDir /home/httpd/lonIDs
1224: PerlSetVar lonTabDir /home/httpd/lonTabs
1225: PerlSetVar lonUsersDir /home/httpd/lonUsers
1226: PerlSetVar lonIconsURL /adm/lonIcons
1227: PerlSetVar londPort 5663
1228: PerlSetVar lonSysEMail korte@lite.msu.edu
1229: PerlSetVar lonDaemons /home/httpd/perl
1230: PerlSetVar lonSockDir /home/httpd/sockets
1231: PerlSetVar lonDocRoot /home/httpd/html
1232: PerlSetVar lonPrtDir /home/httpd/prtspool
1233: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1234: # & sepeareted list of : seperated fileds inorder of
1235: # - internal name to call it,
1236: # - regexp that it should match (done case-insensitively)
1237: # - regexp that is should not match (done case-insensitively)
1238: # - regexp that will pull out the version number into $1
1239: # - a number that describes the minimum version that has mathml support
1240: # - a number that describes the minimum number version that has unicode support
1241:
1242: PerlSetVar lonBrowsDet explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&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
1243:
1244: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1245: PerlSetVar lonScansDir /home/httpd/scantron
1246: PerlSetVar lonScriptTimeout 10
1247: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1248: PerlSetVar FAQHost http://help.lon-capa.org/
1249: # -----------------------------------------------------------------------------
1250: # NOTE: lonSqlAccess key is the password for the MySQL user
1251: # www@localhost. This value must always be "localhostkey".
1252: # The only security risk occurs when somebody logs in as 'www' on your system
1253: # (in which case you have much bigger problems than whether or not they
1254: # can access the non-authoritative loncapa database on your machine).
1255:
1256: PerlSetVar lonSqlAccess localhostkey
1257:
1258: # -----------------------------------------------------------------------------
1259: # lonttpdPort is the port used by the lightweight graphics httpd server
1260: # not the main Apache server
1261: PerlSetVar lonhttpdPort 8080
1262:
1263:
1264: #----------------------------------------------------------------------------
1265: #
1266: # Parameters used by secure lond/lonc
1267:
1268: #
1269: # Secure lond/lonc require ssl certificate and private
1270: # key files to function correctly. The certificate
1271: # files need not be terribly secure, but the private key files
1272: # should be set up so that only www (the lonc/lond effective user)
1273: # can read them.
1274: #
1275: # The definition below is the full path to the directory that
1276: # contains the certificate and key files:
1277:
1278: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1279:
1280: #
1281: # Secure lond/lonc require two certificates and a private host key.
1282: # The certificates required are that of the lonCAPA certificate authority
1283: # and the certificate that authority issued to this host.
1284: # lonnetCertificateAuthority is the name of the file that contains the
1285: # lonCAPA certificate authority's certificate.
1286: # lonnetCertificate is the name of the file that contains the certificate
1287: # issued to the host by the certificate authority.
1288: # Both of these variables are names of files assumed to be in
1289: # lonCertificateDirectory:
1290:
1291: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1292: PerlSetVar lonnetCertificate lonhostcert.pem
1293:
1294: #
1295: # To generate the request for a certificate, and to negotiate the
1296: # initial ssl connection, the host requires a private key. This key
1297: # is created at lonCAPA install time. Did we mention above that it
1298: # should be set so that only www can read it? The variale below
1299: # is the name of the file relative to lonnetCertificateDirectory
1300: # that has the host's private key. Did we remember to tell you to
1301: # keep the permissions on that file set to rw------- (0600)?
1302: #
1303:
1304: PerlSetVar lonnetPrivateKey lonKey.pem
1305:
1306: # Did we mention that the file described above must have
1307: # permissions really locked down so that it can't be stolen?
1308:
1309: #-------------------------------------------------------------------------
1310:
1311: # Parameters that define where all the ssl stuff is that's needed
1312: # to generate certificate requests and, on a system that's a CA
1313: # the certificate authority.
1314: #
1315: # SSLProgram -> Path to the openssl command
1316: # SSLDirectory -> Directory containing ssl configuration files etc.
1317: # SSLCAConfig -> Name of the SSL config file for the certificate
1318: # Authority.
1319: # SSLCAFile -> Full path to the Certificate authority file
1320: # (on the cert manager system).
1321: # SSLEmail -> E-mail address of loncapa certificate manager.
1322: # The following are good for the loncapa redhat installs and
1323: # the loncapa certificate authority system:
1324: #
1325: PerlSetVar SSLProgram /usr/bin/openssl
1326: PerlSetVar SSLDirectory /usr/share/ssl
1327: PerlSetVar SSLCAConfig loncapaca
1328: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1329: PerlSetVar SSLEmail certificate@lon-capa.org
1330:
1331: #-------------------------------------------------------------------------
1332:
1333:
1334:
1335:
1336: # ====================================== Include machine-specific configuration
1337:
1338: Include conf/loncapa.conf
1339:
1340: # ================================================= Include local configuration
1341:
1342: Include conf/loncapa_apache_local*.conf
1343:
1344: # ================================================== Initiate mod_perl starting
1345:
1346: PerlRequire conf/startup.pl
1347: <IfDefine !MODPERL2>
1348: PerlFreshRestart On
1349: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>