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