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