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