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