1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.116 2005/10/10 15:38:18 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/authenticate>
403: SetHandler perl-script
404: PerlHandler Apache::lonauth
405: </Location>
406:
407: <Location /adm/annotations>
408: PerlAccessHandler Apache::lonacc
409: SetHandler perl-script
410: PerlHandler Apache::admannotations
411: ErrorDocument 403 /adm/login
412: ErrorDocument 500 /adm/errorhandler
413: </Location>
414:
415: <Location /adm/spellcheck>
416: PerlAccessHandler Apache::lonacc
417: SetHandler perl-script
418: PerlHandler Apache::lonspeller
419: ErrorDocument 403 /adm/login
420: ErrorDocument 500 /adm/errorhandler
421: </Location>
422:
423: <Location /adm/bookmarks>
424: PerlAccessHandler Apache::lonacc
425: SetHandler perl-script
426: PerlHandler Apache::admbookmarks
427: ErrorDocument 403 /adm/login
428: ErrorDocument 500 /adm/errorhandler
429: </Location>
430:
431: <Location /adm/flip>
432: PerlAccessHandler Apache::lonacc
433: SetHandler perl-script
434: PerlHandler Apache::lonpageflip
435: PerlCleanupHandler Apache::lonpageflip::cleanup
436: PerlCleanupHandler Apache::lonnet::save_cache
437: ErrorDocument 406 /adm/roles
438: ErrorDocument 403 /adm/login
439: ErrorDocument 500 /adm/errorhandler
440: </Location>
441:
442: <Location /adm/ambiguous>
443: PerlAccessHandler Apache::lonacc
444: SetHandler perl-script
445: PerlHandler Apache::lonambiguous
446: PerlCleanupHandler Apache::lonambiguous::cleanup
447: PerlCleanupHandler Apache::lonnet::save_cache
448: ErrorDocument 403 /adm/login
449: ErrorDocument 500 /adm/errorhandler
450: </Location>
451:
452: <Location /adm/email>
453: PerlAccessHandler Apache::lonacc
454: SetHandler perl-script
455: PerlHandler Apache::lonmsg
456: ErrorDocument 403 /adm/login
457: ErrorDocument 500 /adm/errorhandler
458: </Location>
459:
460: <Location /adm/notify>
461: PerlAccessHandler Apache::lonacc
462: SetHandler perl-script
463: PerlHandler Apache::lonnotify
464: ErrorDocument 403 /adm/login
465: ErrorDocument 500 /adm/errorhandler
466: </Location>
467:
468: <Location /adm/parmset>
469: PerlAccessHandler Apache::lonacc
470: SetHandler perl-script
471: PerlHandler Apache::lonparmset
472: ErrorDocument 403 /adm/login
473: ErrorDocument 406 /adm/roles
474: ErrorDocument 500 /adm/errorhandler
475: </Location>
476:
477: <Location /adm/slotrequest>
478: PerlAccessHandler Apache::lonacc
479: SetHandler perl-script
480: PerlHandler Apache::slotrequest
481: ErrorDocument 403 /adm/login
482: ErrorDocument 406 /adm/roles
483: ErrorDocument 500 /adm/errorhandler
484: </Location>
485:
486: <Location /adm/wizard>
487: PerlAccessHandler Apache::lonacc
488: SetHandler perl-script
489: PerlHandler Apache::lonwizard
490: ErrorDocument 403 /adm/login
491: ErrorDocument 406 /adm/roles
492: ErrorDocument 500 /adm/errorhandler
493: </Location>
494:
495: <Location /adm/grades>
496: PerlAccessHandler Apache::lonacc
497: SetHandler perl-script
498: PerlHandler Apache::grades
499: ErrorDocument 403 /adm/login
500: ErrorDocument 406 /adm/roles
501: ErrorDocument 500 /adm/errorhandler
502: </Location>
503:
504: <Location /adm/createcourse>
505: PerlAccessHandler Apache::lonacc
506: SetHandler perl-script
507: PerlHandler Apache::loncreatecourse
508: ErrorDocument 403 /adm/login
509: ErrorDocument 406 /adm/roles
510: ErrorDocument 500 /adm/errorhandler
511: </Location>
512:
513: <Location /adm/modifycourse>
514: PerlAccessHandler Apache::lonacc
515: SetHandler perl-script
516: PerlHandler Apache::lonmodifycourse
517: ErrorDocument 403 /adm/login
518: ErrorDocument 406 /adm/roles
519: ErrorDocument 500 /adm/errorhandler
520: </Location>
521:
522: <Location /adm/createuser>
523: PerlAccessHandler Apache::lonacc
524: SetHandler perl-script
525: PerlHandler Apache::loncreateuser
526: ErrorDocument 403 /adm/login
527: ErrorDocument 406 /adm/roles
528: ErrorDocument 500 /adm/errorhandler
529: </Location>
530:
531: <Location /adm/publish>
532: PerlAccessHandler Apache::lonacc
533: SetHandler perl-script
534: PerlHandler Apache::lonpublisher
535: ErrorDocument 403 /adm/login
536: ErrorDocument 404 /adm/notfound.html
537: ErrorDocument 406 /adm/unauthorized
538: ErrorDocument 500 /adm/errorhandler
539: </Location>
540:
541: <LocationMatch "^/+\~.*/$">
542: PerlAccessHandler Apache::loncacc
543: SetHandler perl-script
544: PerlHandler Apache::lonpubdir
545: ErrorDocument 403 /adm/login
546: ErrorDocument 404 /adm/notfound.html
547: ErrorDocument 406 /adm/unauthorized
548: ErrorDocument 500 /adm/errorhandler
549: </LocationMatch>
550:
551: <Location /adm/pubdir>
552: PerlAccessHandler Apache::lonacc
553: SetHandler perl-script
554: PerlHandler Apache::lonpubdir
555: ErrorDocument 403 /adm/login
556: ErrorDocument 404 /adm/notfound.html
557: ErrorDocument 406 /adm/unauthorized
558: ErrorDocument 500 /adm/errorhandler
559: </Location>
560:
561: <Location /adm/unauthorized>
562: PerlAccessHandler Apache::lonacc
563: SetHandler perl-script
564: PerlHandler Apache::lonunauthorized
565: ErrorDocument 403 /adm/login
566: ErrorDocument 404 /adm/notfound.html
567: ErrorDocument 500 /adm/errorhandler
568: </Location>
569:
570: <Location /adm/retrieve>
571: PerlAccessHandler Apache::lonacc
572: SetHandler perl-script
573: PerlHandler Apache::lonretrieve
574: ErrorDocument 403 /adm/login
575: ErrorDocument 404 /adm/notfound.html
576: ErrorDocument 406 /adm/unauthorized
577: ErrorDocument 500 /adm/errorhandler
578: </Location>
579:
580: <Location /adm/cleanup>
581: PerlAccessHandler Apache::lonacc
582: SetHandler perl-script
583: PerlHandler Apache::loncleanup
584: ErrorDocument 403 /adm/login
585: ErrorDocument 404 /adm/notfound.html
586: ErrorDocument 406 /adm/unauthorized
587: ErrorDocument 500 /adm/errorhandler
588: </Location>
589:
590: <Location /adm/cfile>
591: PerlAccessHandler Apache::lonacc
592: SetHandler perl-script
593: PerlHandler Apache::loncfile
594: ErrorDocument 403 /adm/login
595: ErrorDocument 404 /adm/notfound.html
596: ErrorDocument 406 /adm/unauthorized
597: ErrorDocument 500 /adm/errorhandler
598: </Location>
599:
600: <Location /adm/diff>
601: PerlAccessHandler Apache::lonacc
602: SetHandler perl-script
603: PerlHandler Apache::londiff
604: ErrorDocument 403 /adm/login
605: ErrorDocument 404 /adm/notfound.html
606: ErrorDocument 406 /adm/unauthorized
607: ErrorDocument 500 /adm/errorhandler
608: </Location>
609:
610: <Location /adm/upload>
611: PerlAccessHandler Apache::lonacc
612: SetHandler perl-script
613: PerlHandler Apache::lonupload
614: ErrorDocument 403 /adm/login
615: ErrorDocument 404 /adm/notfound.html
616: ErrorDocument 406 /adm/unauthorized
617: ErrorDocument 500 /adm/errorhandler
618: </Location>
619:
620: <Location /adm/imsimport>
621: PerlAccessHandler Apache::lonacc
622: SetHandler perl-script
623: PerlHandler Apache::imsimport
624: ErrorDocument 403 /adm/login
625: ErrorDocument 404 /adm/notfound.html
626: ErrorDocument 406 /adm/unauthorized
627: ErrorDocument 500 /adm/errorhandler
628: </Location>
629:
630: <Location /adm/testbank>
631: PerlAccessHandler Apache::lonacc
632: SetHandler perl-script
633: PerlHandler Apache::testbankimport
634: ErrorDocument 403 /adm/login
635: ErrorDocument 404 /adm/notfound.html
636: ErrorDocument 406 /adm/unauthorized
637: ErrorDocument 500 /adm/errorhandler
638: </Location>
639:
640: <Location /adm/assesscalc>
641: PerlAccessHandler Apache::lonacc
642: SetHandler perl-script
643: PerlHandler Apache::lonspreadsheet
644: ErrorDocument 403 /adm/login
645: ErrorDocument 406 /adm/roles
646: ErrorDocument 413 /adm/overloaded.txt
647: ErrorDocument 500 /adm/errorhandler
648: </Location>
649:
650: <Location /adm/studentcalc>
651: PerlAccessHandler Apache::lonacc
652: SetHandler perl-script
653: PerlHandler Apache::lonspreadsheet
654: ErrorDocument 403 /adm/login
655: ErrorDocument 406 /adm/roles
656: ErrorDocument 413 /adm/overloaded.txt
657: ErrorDocument 500 /adm/errorhandler
658: </Location>
659:
660: <Location /adm/classcalc>
661: PerlAccessHandler Apache::lonacc
662: SetHandler perl-script
663: PerlHandler Apache::lonspreadsheet
664: ErrorDocument 403 /adm/login
665: ErrorDocument 406 /adm/roles
666: ErrorDocument 413 /adm/overloaded.txt
667: ErrorDocument 500 /adm/errorhandler
668: </Location>
669:
670: <Location /adm/dropadd>
671: PerlAccessHandler Apache::lonacc
672: SetHandler perl-script
673: PerlHandler Apache::londropadd
674: ErrorDocument 403 /adm/login
675: ErrorDocument 406 /adm/roles
676: ErrorDocument 500 /adm/errorhandler
677: </Location>
678:
679: <Location /adm/viewclasslist>
680: PerlAccessHandler Apache::lonacc
681: SetHandler perl-script
682: PerlHandler Apache::lonviewclasslist
683: ErrorDocument 403 /adm/login
684: ErrorDocument 406 /adm/roles
685: ErrorDocument 500 /adm/errorhandler
686: </Location>
687:
688: <Location /adm/whatsnew>
689: PerlAccessHandler Apache::lonacc
690: SetHandler perl-script
691: PerlHandler Apache::lonwhatsnew
692: ErrorDocument 403 /adm/login
693: ErrorDocument 406 /adm/roles
694: ErrorDocument 500 /adm/errorhandler
695: </Location>
696:
697: <Location /adm/populate>
698: PerlAccessHandler Apache::lonacc
699: SetHandler perl-script
700: PerlHandler Apache::lonpopulate
701: ErrorDocument 403 /adm/login
702: ErrorDocument 406 /adm/roles
703: ErrorDocument 500 /adm/errorhandler
704: </Location>
705:
706: <Location /adm/managekeys>
707: PerlAccessHandler Apache::lonacc
708: SetHandler perl-script
709: PerlHandler Apache::lonmanagekeys
710: ErrorDocument 403 /adm/login
711: ErrorDocument 406 /adm/roles
712: ErrorDocument 500 /adm/errorhandler
713: </Location>
714:
715: <Location /adm/printout>
716: PerlAccessHandler Apache::lonacc
717: SetHandler perl-script
718: PerlHandler Apache::lonprintout
719: ErrorDocument 403 /adm/login
720: ErrorDocument 413 /adm/overloaded.txt
721: ErrorDocument 500 /adm/errorhandler
722: </Location>
723:
724: <Location /adm/feedback>
725: PerlAccessHandler Apache::lonacc
726: SetHandler perl-script
727: PerlHandler Apache::lonfeedback
728: ErrorDocument 403 /adm/login
729: ErrorDocument 500 /adm/errorhandler
730: </Location>
731:
732: <Location /adm/coursedocs>
733: PerlAccessHandler Apache::lonacc
734: SetHandler perl-script
735: PerlHandler Apache::londocs
736: PerlCleanupHandler Apache::londocs::untiehash
737: PerlCleanupHandler Apache::lonnet::save_cache
738: ErrorDocument 403 /adm/login
739: ErrorDocument 500 /adm/errorhandler
740: </Location>
741:
742: <Location /adm/imsimportdocs>
743: PerlAccessHandler Apache::lonacc
744: SetHandler perl-script
745: PerlHandler Apache::imsimportdocs
746: ErrorDocument 403 /adm/login
747: ErrorDocument 500 /adm/errorhandler
748: </Location>
749:
750: <Location /adm/announcements>
751: PerlAccessHandler Apache::lonacc
752: SetHandler perl-script
753: PerlHandler Apache::lonannounce
754: ErrorDocument 403 /adm/login
755: ErrorDocument 500 /adm/errorhandler
756: </Location>
757:
758: <Location /adm/chat>
759: PerlAccessHandler Apache::lonacc
760: SetHandler perl-script
761: PerlHandler Apache::lonchat
762: ErrorDocument 500 /adm/errorhandler
763: </Location>
764:
765: <Location /adm/chatfetch>
766: PerlAccessHandler Apache::lonacc
767: SetHandler perl-script
768: PerlHandler Apache::lonchatfetch
769: ErrorDocument 413 /adm/overloaded.txt
770: ErrorDocument 500 /adm/errorhandler
771: </Location>
772:
773: <Location /adm/evaluate>
774: PerlAccessHandler Apache::lonacc
775: SetHandler perl-script
776: PerlHandler Apache::lonevaluate
777: ErrorDocument 403 /adm/login
778: ErrorDocument 500 /adm/errorhandler
779: </Location>
780:
781: <Location /adm/preferences>
782: PerlAccessHandler Apache::lonacc
783: SetHandler perl-script
784: PerlHandler Apache::lonpreferences
785: ErrorDocument 403 /adm/login
786: ErrorDocument 500 /adm/errorhandler
787: </Location>
788:
789: <Location /adm/communicate>
790: PerlAccessHandler Apache::lonacc
791: SetHandler perl-script
792: PerlHandler Apache::loncommunicate
793: ErrorDocument 403 /adm/login
794: ErrorDocument 500 /adm/errorhandler
795: </Location>
796:
797: <Location /adm/searchcat>
798: PerlAccessHandler Apache::lonacc
799: SetHandler perl-script
800: PerlHandler Apache::lonsearchcat
801: PerlCleanupHandler Apache::lonsearchcat::cleanup
802: PerlCleanupHandler Apache::lonnet::save_cache
803: ErrorDocument 403 /adm/login
804: ErrorDocument 413 /adm/overloaded.txt
805: ErrorDocument 500 /adm/errorhandler
806: </Location>
807:
808: <Location /adm/navmaps>
809: PerlAccessHandler Apache::lonacc
810: SetHandler perl-script
811: PerlHandler Apache::lonnavmaps
812: ErrorDocument 403 /adm/login
813: ErrorDocument 406 /adm/roles
814: ErrorDocument 500 /adm/errorhandler
815: </Location>
816:
817: <Location /adm/quickgrades>
818: PerlAccessHandler Apache::lonacc
819: SetHandler perl-script
820: PerlHandler Apache::lonquickgrades
821: ErrorDocument 403 /adm/login
822: ErrorDocument 406 /adm/roles
823: ErrorDocument 500 /adm/errorhandler
824: </Location>
825:
826: <Location /adm/groupsort>
827: PerlAccessHandler Apache::lonacc
828: SetHandler perl-script
829: PerlHandler Apache::groupsort
830: PerlCleanupHandler Apache::groupsort::cleanup
831: PerlCleanupHandler Apache::lonnet::save_cache
832: ErrorDocument 403 /adm/login
833: ErrorDocument 500 /adm/errorhandler
834: </Location>
835:
836: <Location /adm/errorhandler>
837: SetHandler perl-script
838: PerlHandler Apache::lonerrorhandler
839: </Location>
840:
841: <LocationMatch "^/adm/help/.*\.hlp$">
842: PerlAccessHandler Apache::lonacc
843: SetHandler perl-script
844: PerlHandler Apache::lonhelp
845: </LocationMatch>
846:
847: <LocationMatch "^/adm/helpmenu">
848: PerlAccessHandler Apache::lonacc
849: SetHandler perl-script
850: PerlHandler Apache::lonhelpmenu
851: </LocationMatch>
852:
853: <LocationMatch "^/adm/support">
854: PerlAccessHandler Apache::lonacc
855: SetHandler perl-script
856: PerlHandler Apache::lonsupportreq
857: </LocationMatch>
858:
859: <LocationMatch "^/adm/helpdesk">
860: SetHandler perl-script
861: PerlHandler Apache::lonsupportreq
862: </LocationMatch>
863:
864: # ------------------------------------------------- Backdoor Adm Tests/Programs
865:
866: <Location /cgi-bin/loncron.pl>
867: AuthName "LON-CAPA Network Administration"
868: AuthType Basic
869: AuthUserFile /home/httpd/lonTabs/htpasswd
870: require user lonadm
871: </Location>
872:
873: <Location /cgi-bin/userstatus.pl>
874: AuthName "LON-CAPA Network Administration"
875: AuthType Basic
876: AuthUserFile /home/httpd/lonTabs/htpasswd
877: require user lonadm
878: </Location>
879:
880: <Location /cgi-bin/lonversions.pl>
881: AuthName "LON-CAPA Network Administration"
882: AuthType Basic
883: AuthUserFile /home/httpd/lonTabs/htpasswd
884: require user lonadm
885: </Location>
886:
887: <Location /cgi-bin/clusterstatus.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/metadata_keywords.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/metadata_harvest.pl>
902: AuthName "harvest"
903: AuthType Basic
904: AuthUserFile /home/httpd/lonTabs/htpasswd
905: require user reaper
906: </Location>
907:
908: <Location /cgi-bin/takeoffline.pl>
909: AuthName "Offline"
910: AuthType Basic
911: AuthUserFile /home/httpd/lonTabs/htpasswd
912: require user offline
913: </Location>
914:
915: <Location /cgi-bin/takeonline.pl>
916: AuthName "Offline"
917: AuthType Basic
918: AuthUserFile /home/httpd/lonTabs/htpasswd
919: require user offline
920: </Location>
921:
922: <Location /adm/test>
923: AuthName "LON-CAPA Network Administration"
924: AuthType Basic
925: AuthUserFile /home/httpd/lonTabs/htpasswd
926: require user lonadm
927: SetHandler perl-script
928: PerlAccessHandler Apache::lonacc
929: PerlHandler Apache::lontest
930: </Location>
931:
932: # ------------------------------------------------------- Shutting down a child
933:
934: PerlChildExitHandler Apache::lonnet::goodbye
935:
936: #
937: # LON-CAPA Section (extensions to access.conf permission configuration)
938: #
939: # =========================================================== Directory Options
940:
941: # Start out with "no"
942:
943: <Directory />
944: Options None
945: AllowOverride None
946: </Directory>
947:
948: # Yes to symbolic links and server-side includes
949:
950: <Directory /home/httpd/html>
951: Options Includes FollowSymLinks
952: AllowOverride None
953: order allow,deny
954: allow from all
955: </Directory>
956:
957: # If it is in cgi-bin, then it can be executed as a CGI script.
958:
959: <Directory /home/httpd/cgi-bin>
960: AllowOverride None
961: Options ExecCGI
962: </Directory>
963:
964: # ============================================================= Access Handlers
965:
966: # ------------------------------------------------- Allow server-status reports
967: <Location /server-status>
968: SetHandler server-status
969: AuthName "LON-CAPA Network Administration"
970: AuthType Basic
971: AuthUserFile /home/httpd/lonTabs/htpasswd
972: require user lonadm
973: </Location>
974:
975: # ------------------------ Allow LON-CAPA "low-level" connection status reports
976: <Location /lon-status>
977: AuthName "LON-CAPA Network Administration"
978: AuthType Basic
979: AuthUserFile /home/httpd/lonTabs/htpasswd
980: require user lonadm
981: </Location>
982:
983: # ------------------- Allow access to local system documentation from localhost
984: Alias /doc /usr/doc
985: <Directory /usr/doc>
986: order deny,allow
987: deny from all
988: allow from localhost
989: Options Indexes FollowSymLinks
990: </Directory>
991:
992: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
993: # ====================================== Internal Settings / Perl Configuration
994:
995: PerlSetVar lonVersion '<!-- VERSION -->'
996: PerlSetVar lonIDsDir /home/httpd/lonIDs
997: PerlSetVar lonTabDir /home/httpd/lonTabs
998: PerlSetVar lonUsersDir /home/httpd/lonUsers
999: PerlSetVar lonIconsURL /adm/lonIcons
1000: PerlSetVar londPort 5663
1001: PerlSetVar lonSysEMail korte@lite.msu.edu
1002: PerlSetVar lonDaemons /home/httpd/perl
1003: PerlSetVar lonSockDir /home/httpd/sockets
1004: PerlSetVar lonDocRoot /home/httpd/html
1005: PerlSetVar lonPrtDir /home/httpd/prtspool
1006: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1007: 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
1008: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1009: PerlSetVar lonScansDir /home/httpd/scantron
1010: PerlSetVar lonScriptTimeout 10
1011: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1012: PerlSetVar FAQHost http://help.lon-capa.org/
1013: # -----------------------------------------------------------------------------
1014: # NOTE: lonSqlAccess key is the password for the MySQL user
1015: # www@localhost. This value must always be "localhostkey".
1016: # The only security risk occurs when somebody logs in as 'www' on your system
1017: # (in which case you have much bigger problems than whether or not they
1018: # can access the non-authoritative loncapa database on your machine).
1019:
1020: PerlSetVar lonSqlAccess localhostkey
1021:
1022: # -----------------------------------------------------------------------------
1023: # lonttpdPort is the port used by the lightweight graphics httpd server
1024: # not the main Apache server
1025: PerlSetVar lonhttpdPort 8080
1026:
1027:
1028: #----------------------------------------------------------------------------
1029: #
1030: # Parameters used by secure lond/lonc
1031:
1032: #
1033: # Secure lond/lonc require ssl certificate and private
1034: # key files to function correctly. The certificate
1035: # files need not be terribly secure, but the private key files
1036: # should be set up so that only www (the lonc/lond effective user)
1037: # can read them.
1038: #
1039: # The definition below is the full path to the directory that
1040: # contains the certificate and key files:
1041:
1042: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1043:
1044: #
1045: # Secure lond/lonc require two certificates and a private host key.
1046: # The certificates required are that of the lonCAPA certificate authority
1047: # and the certificate that authority issued to this host.
1048: # lonnetCertificateAuthority is the name of the file that contains the
1049: # lonCAPA certificate authority's certificate.
1050: # lonnetCertificate is the name of the file that contains the certificate
1051: # issued to the host by the certificate authority.
1052: # Both of these variables are names of files assumed to be in
1053: # lonCertificateDirectory:
1054:
1055: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1056: PerlSetVar lonnetCertificate lonhostcert.pem
1057:
1058: #
1059: # To generate the request for a certificate, and to negotiate the
1060: # initial ssl connection, the host requires a private key. This key
1061: # is created at lonCAPA install time. Did we mention above that it
1062: # should be set so that only www can read it? The variale below
1063: # is the name of the file relative to lonnetCertificateDirectory
1064: # that has the host's private key. Did we remember to tell you to
1065: # keep the permissions on that file set to rw------- (0600)?
1066: #
1067:
1068: PerlSetVar lonnetPrivateKey lonKey.pem
1069:
1070: # Did we mention that the file described above must have
1071: # permissions really locked down so that it can't be stolen?
1072:
1073: #-------------------------------------------------------------------------
1074:
1075: # Parameters that define where all the ssl stuff is that's needed
1076: # to generate certificate requests and, on a system that's a CA
1077: # the certificate authority.
1078: #
1079: # SSLProgram -> Path to the openssl command
1080: # SSLDirectory -> Directory containing ssl configuration files etc.
1081: # SSLCAConfig -> Name of the SSL config file for the certificate
1082: # Authority.
1083: # SSLCAFile -> Full path to the Certificate authority file
1084: # (on the cert manager system).
1085: # SSLEmail -> E-mail address of loncapa certificate manager.
1086: # The following are good for the loncapa redhat installs and
1087: # the loncapa certificate authority system:
1088: #
1089: PerlSetVar SSLProgram /usr/bin/openssl
1090: PerlSetVar SSLDirectory /usr/share/ssl
1091: PerlSetVar SSLCAConfig loncapaca
1092: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1093: PerlSetVar SSLEmail certificate@lon-capa.org
1094:
1095: #-------------------------------------------------------------------------
1096:
1097:
1098:
1099:
1100: # ====================================== Include machine-specific configuration
1101:
1102: Include conf/loncapa.conf
1103:
1104: # ================================================= Include local configuration
1105:
1106: Include conf/loncapa_apache_local*.conf
1107:
1108: # ================================================== Initiate mod_perl starting
1109:
1110: PerlRequire conf/startup.pl
1111: <IfDefine !MODPERL2>
1112: PerlFreshRestart On
1113: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>