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