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