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