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