1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.117 2005/10/24 21:32:35 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::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/whatsnew>
701: PerlAccessHandler Apache::lonacc
702: SetHandler perl-script
703: PerlHandler Apache::lonwhatsnew
704: ErrorDocument 403 /adm/login
705: ErrorDocument 406 /adm/roles
706: ErrorDocument 500 /adm/errorhandler
707: </Location>
708:
709: <Location /adm/populate>
710: PerlAccessHandler Apache::lonacc
711: SetHandler perl-script
712: PerlHandler Apache::lonpopulate
713: ErrorDocument 403 /adm/login
714: ErrorDocument 406 /adm/roles
715: ErrorDocument 500 /adm/errorhandler
716: </Location>
717:
718: <Location /adm/managekeys>
719: PerlAccessHandler Apache::lonacc
720: SetHandler perl-script
721: PerlHandler Apache::lonmanagekeys
722: ErrorDocument 403 /adm/login
723: ErrorDocument 406 /adm/roles
724: ErrorDocument 500 /adm/errorhandler
725: </Location>
726:
727: <Location /adm/printout>
728: PerlAccessHandler Apache::lonacc
729: SetHandler perl-script
730: PerlHandler Apache::lonprintout
731: ErrorDocument 403 /adm/login
732: ErrorDocument 413 /adm/overloaded.txt
733: ErrorDocument 500 /adm/errorhandler
734: </Location>
735:
736: <Location /adm/feedback>
737: PerlAccessHandler Apache::lonacc
738: SetHandler perl-script
739: PerlHandler Apache::lonfeedback
740: ErrorDocument 403 /adm/login
741: ErrorDocument 500 /adm/errorhandler
742: </Location>
743:
744: <Location /adm/coursedocs>
745: PerlAccessHandler Apache::lonacc
746: SetHandler perl-script
747: PerlHandler Apache::londocs
748: PerlCleanupHandler Apache::londocs::untiehash
749: PerlCleanupHandler Apache::lonnet::save_cache
750: ErrorDocument 403 /adm/login
751: ErrorDocument 500 /adm/errorhandler
752: </Location>
753:
754: <Location /adm/imsimportdocs>
755: PerlAccessHandler Apache::lonacc
756: SetHandler perl-script
757: PerlHandler Apache::imsimportdocs
758: ErrorDocument 403 /adm/login
759: ErrorDocument 500 /adm/errorhandler
760: </Location>
761:
762: <Location /adm/announcements>
763: PerlAccessHandler Apache::lonacc
764: SetHandler perl-script
765: PerlHandler Apache::lonannounce
766: ErrorDocument 403 /adm/login
767: ErrorDocument 500 /adm/errorhandler
768: </Location>
769:
770: <Location /adm/chat>
771: PerlAccessHandler Apache::lonacc
772: SetHandler perl-script
773: PerlHandler Apache::lonchat
774: ErrorDocument 500 /adm/errorhandler
775: </Location>
776:
777: <Location /adm/chatfetch>
778: PerlAccessHandler Apache::lonacc
779: SetHandler perl-script
780: PerlHandler Apache::lonchatfetch
781: ErrorDocument 413 /adm/overloaded.txt
782: ErrorDocument 500 /adm/errorhandler
783: </Location>
784:
785: <Location /adm/evaluate>
786: PerlAccessHandler Apache::lonacc
787: SetHandler perl-script
788: PerlHandler Apache::lonevaluate
789: ErrorDocument 403 /adm/login
790: ErrorDocument 500 /adm/errorhandler
791: </Location>
792:
793: <Location /adm/preferences>
794: PerlAccessHandler Apache::lonacc
795: SetHandler perl-script
796: PerlHandler Apache::lonpreferences
797: ErrorDocument 403 /adm/login
798: ErrorDocument 500 /adm/errorhandler
799: </Location>
800:
801: <Location /adm/communicate>
802: PerlAccessHandler Apache::lonacc
803: SetHandler perl-script
804: PerlHandler Apache::loncommunicate
805: ErrorDocument 403 /adm/login
806: ErrorDocument 500 /adm/errorhandler
807: </Location>
808:
809: <Location /adm/searchcat>
810: PerlAccessHandler Apache::lonacc
811: SetHandler perl-script
812: PerlHandler Apache::lonsearchcat
813: PerlCleanupHandler Apache::lonsearchcat::cleanup
814: PerlCleanupHandler Apache::lonnet::save_cache
815: ErrorDocument 403 /adm/login
816: ErrorDocument 413 /adm/overloaded.txt
817: ErrorDocument 500 /adm/errorhandler
818: </Location>
819:
820: <Location /adm/navmaps>
821: PerlAccessHandler Apache::lonacc
822: SetHandler perl-script
823: PerlHandler Apache::lonnavmaps
824: ErrorDocument 403 /adm/login
825: ErrorDocument 406 /adm/roles
826: ErrorDocument 500 /adm/errorhandler
827: </Location>
828:
829: <Location /adm/quickgrades>
830: PerlAccessHandler Apache::lonacc
831: SetHandler perl-script
832: PerlHandler Apache::lonquickgrades
833: ErrorDocument 403 /adm/login
834: ErrorDocument 406 /adm/roles
835: ErrorDocument 500 /adm/errorhandler
836: </Location>
837:
838: <Location /adm/groupsort>
839: PerlAccessHandler Apache::lonacc
840: SetHandler perl-script
841: PerlHandler Apache::groupsort
842: PerlCleanupHandler Apache::groupsort::cleanup
843: PerlCleanupHandler Apache::lonnet::save_cache
844: ErrorDocument 403 /adm/login
845: ErrorDocument 500 /adm/errorhandler
846: </Location>
847:
848: <Location /adm/errorhandler>
849: SetHandler perl-script
850: PerlHandler Apache::lonerrorhandler
851: </Location>
852:
853: <LocationMatch "^/adm/help/.*\.hlp$">
854: PerlAccessHandler Apache::lonacc
855: SetHandler perl-script
856: PerlHandler Apache::lonhelp
857: </LocationMatch>
858:
859: <LocationMatch "^/adm/helpmenu">
860: PerlAccessHandler Apache::lonacc
861: SetHandler perl-script
862: PerlHandler Apache::lonhelpmenu
863: </LocationMatch>
864:
865: <LocationMatch "^/adm/support">
866: PerlAccessHandler Apache::lonacc
867: SetHandler perl-script
868: PerlHandler Apache::lonsupportreq
869: </LocationMatch>
870:
871: <LocationMatch "^/adm/helpdesk">
872: SetHandler perl-script
873: PerlHandler Apache::lonsupportreq
874: </LocationMatch>
875:
876: # ------------------------------------------------- Backdoor Adm Tests/Programs
877:
878: <Location /cgi-bin/loncron.pl>
879: AuthName "LON-CAPA Network Administration"
880: AuthType Basic
881: AuthUserFile /home/httpd/lonTabs/htpasswd
882: require user lonadm
883: </Location>
884:
885: <Location /cgi-bin/userstatus.pl>
886: AuthName "LON-CAPA Network Administration"
887: AuthType Basic
888: AuthUserFile /home/httpd/lonTabs/htpasswd
889: require user lonadm
890: </Location>
891:
892: <Location /cgi-bin/lonversions.pl>
893: AuthName "LON-CAPA Network Administration"
894: AuthType Basic
895: AuthUserFile /home/httpd/lonTabs/htpasswd
896: require user lonadm
897: </Location>
898:
899: <Location /cgi-bin/clusterstatus.pl>
900: AuthName "LON-CAPA Network Administration"
901: AuthType Basic
902: AuthUserFile /home/httpd/lonTabs/htpasswd
903: require user lonadm
904: </Location>
905:
906: <Location /cgi-bin/metadata_keywords.pl>
907: AuthName "LON-CAPA Network Administration"
908: AuthType Basic
909: AuthUserFile /home/httpd/lonTabs/htpasswd
910: require user lonadm
911: </Location>
912:
913: <Location /cgi-bin/metadata_harvest.pl>
914: AuthName "harvest"
915: AuthType Basic
916: AuthUserFile /home/httpd/lonTabs/htpasswd
917: require user reaper
918: </Location>
919:
920: <Location /cgi-bin/takeoffline.pl>
921: AuthName "Offline"
922: AuthType Basic
923: AuthUserFile /home/httpd/lonTabs/htpasswd
924: require user offline
925: </Location>
926:
927: <Location /cgi-bin/takeonline.pl>
928: AuthName "Offline"
929: AuthType Basic
930: AuthUserFile /home/httpd/lonTabs/htpasswd
931: require user offline
932: </Location>
933:
934: <Location /adm/test>
935: AuthName "LON-CAPA Network Administration"
936: AuthType Basic
937: AuthUserFile /home/httpd/lonTabs/htpasswd
938: require user lonadm
939: SetHandler perl-script
940: PerlAccessHandler Apache::lonacc
941: PerlHandler Apache::lontest
942: </Location>
943:
944: # ------------------------------------------------------- Shutting down a child
945:
946: PerlChildExitHandler Apache::lonnet::goodbye
947:
948: #
949: # LON-CAPA Section (extensions to access.conf permission configuration)
950: #
951: # =========================================================== Directory Options
952:
953: # Start out with "no"
954:
955: <Directory />
956: Options None
957: AllowOverride None
958: </Directory>
959:
960: # Yes to symbolic links and server-side includes
961:
962: <Directory /home/httpd/html>
963: Options Includes FollowSymLinks
964: AllowOverride None
965: order allow,deny
966: allow from all
967: </Directory>
968:
969: # If it is in cgi-bin, then it can be executed as a CGI script.
970:
971: <Directory /home/httpd/cgi-bin>
972: AllowOverride None
973: Options ExecCGI
974: </Directory>
975:
976: # ============================================================= Access Handlers
977:
978: # ------------------------------------------------- Allow server-status reports
979: <Location /server-status>
980: SetHandler server-status
981: AuthName "LON-CAPA Network Administration"
982: AuthType Basic
983: AuthUserFile /home/httpd/lonTabs/htpasswd
984: require user lonadm
985: </Location>
986:
987: # ------------------------ Allow LON-CAPA "low-level" connection status reports
988: <Location /lon-status>
989: AuthName "LON-CAPA Network Administration"
990: AuthType Basic
991: AuthUserFile /home/httpd/lonTabs/htpasswd
992: require user lonadm
993: </Location>
994:
995: # ------------------- Allow access to local system documentation from localhost
996: Alias /doc /usr/doc
997: <Directory /usr/doc>
998: order deny,allow
999: deny from all
1000: allow from localhost
1001: Options Indexes FollowSymLinks
1002: </Directory>
1003:
1004: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1005: # ====================================== Internal Settings / Perl Configuration
1006:
1007: PerlSetVar lonVersion '<!-- VERSION -->'
1008: PerlSetVar lonIDsDir /home/httpd/lonIDs
1009: PerlSetVar lonTabDir /home/httpd/lonTabs
1010: PerlSetVar lonUsersDir /home/httpd/lonUsers
1011: PerlSetVar lonIconsURL /adm/lonIcons
1012: PerlSetVar londPort 5663
1013: PerlSetVar lonSysEMail korte@lite.msu.edu
1014: PerlSetVar lonDaemons /home/httpd/perl
1015: PerlSetVar lonSockDir /home/httpd/sockets
1016: PerlSetVar lonDocRoot /home/httpd/html
1017: PerlSetVar lonPrtDir /home/httpd/prtspool
1018: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1019: 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
1020: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1021: PerlSetVar lonScansDir /home/httpd/scantron
1022: PerlSetVar lonScriptTimeout 10
1023: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1024: PerlSetVar FAQHost http://help.lon-capa.org/
1025: # -----------------------------------------------------------------------------
1026: # NOTE: lonSqlAccess key is the password for the MySQL user
1027: # www@localhost. This value must always be "localhostkey".
1028: # The only security risk occurs when somebody logs in as 'www' on your system
1029: # (in which case you have much bigger problems than whether or not they
1030: # can access the non-authoritative loncapa database on your machine).
1031:
1032: PerlSetVar lonSqlAccess localhostkey
1033:
1034: # -----------------------------------------------------------------------------
1035: # lonttpdPort is the port used by the lightweight graphics httpd server
1036: # not the main Apache server
1037: PerlSetVar lonhttpdPort 8080
1038:
1039:
1040: #----------------------------------------------------------------------------
1041: #
1042: # Parameters used by secure lond/lonc
1043:
1044: #
1045: # Secure lond/lonc require ssl certificate and private
1046: # key files to function correctly. The certificate
1047: # files need not be terribly secure, but the private key files
1048: # should be set up so that only www (the lonc/lond effective user)
1049: # can read them.
1050: #
1051: # The definition below is the full path to the directory that
1052: # contains the certificate and key files:
1053:
1054: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1055:
1056: #
1057: # Secure lond/lonc require two certificates and a private host key.
1058: # The certificates required are that of the lonCAPA certificate authority
1059: # and the certificate that authority issued to this host.
1060: # lonnetCertificateAuthority is the name of the file that contains the
1061: # lonCAPA certificate authority's certificate.
1062: # lonnetCertificate is the name of the file that contains the certificate
1063: # issued to the host by the certificate authority.
1064: # Both of these variables are names of files assumed to be in
1065: # lonCertificateDirectory:
1066:
1067: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1068: PerlSetVar lonnetCertificate lonhostcert.pem
1069:
1070: #
1071: # To generate the request for a certificate, and to negotiate the
1072: # initial ssl connection, the host requires a private key. This key
1073: # is created at lonCAPA install time. Did we mention above that it
1074: # should be set so that only www can read it? The variale below
1075: # is the name of the file relative to lonnetCertificateDirectory
1076: # that has the host's private key. Did we remember to tell you to
1077: # keep the permissions on that file set to rw------- (0600)?
1078: #
1079:
1080: PerlSetVar lonnetPrivateKey lonKey.pem
1081:
1082: # Did we mention that the file described above must have
1083: # permissions really locked down so that it can't be stolen?
1084:
1085: #-------------------------------------------------------------------------
1086:
1087: # Parameters that define where all the ssl stuff is that's needed
1088: # to generate certificate requests and, on a system that's a CA
1089: # the certificate authority.
1090: #
1091: # SSLProgram -> Path to the openssl command
1092: # SSLDirectory -> Directory containing ssl configuration files etc.
1093: # SSLCAConfig -> Name of the SSL config file for the certificate
1094: # Authority.
1095: # SSLCAFile -> Full path to the Certificate authority file
1096: # (on the cert manager system).
1097: # SSLEmail -> E-mail address of loncapa certificate manager.
1098: # The following are good for the loncapa redhat installs and
1099: # the loncapa certificate authority system:
1100: #
1101: PerlSetVar SSLProgram /usr/bin/openssl
1102: PerlSetVar SSLDirectory /usr/share/ssl
1103: PerlSetVar SSLCAConfig loncapaca
1104: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1105: PerlSetVar SSLEmail certificate@lon-capa.org
1106:
1107: #-------------------------------------------------------------------------
1108:
1109:
1110:
1111:
1112: # ====================================== Include machine-specific configuration
1113:
1114: Include conf/loncapa.conf
1115:
1116: # ================================================= Include local configuration
1117:
1118: Include conf/loncapa_apache_local*.conf
1119:
1120: # ================================================== Initiate mod_perl starting
1121:
1122: PerlRequire conf/startup.pl
1123: <IfDefine !MODPERL2>
1124: PerlFreshRestart On
1125: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>