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