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