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