1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.190.4.3 2010/12/05 18:27:23 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/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|tex)$">
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/pickuser>
531: AuthType LONCAPA
532: Require valid-user
533: PerlAuthzHandler Apache::lonacc
534: SetHandler perl-script
535: PerlHandler Apache::lonpickuser
536: ErrorDocument 403 /adm/login
537: ErrorDocument 406 /adm/roles
538: ErrorDocument 500 /adm/errorhandler
539: </Location>
540:
541: <Location /adm/pickcourse>
542: AuthType LONCAPA
543: Require valid-user
544: PerlAuthzHandler Apache::lonacc
545: SetHandler perl-script
546: PerlHandler Apache::lonpickcourse
547: ErrorDocument 403 /adm/login
548: ErrorDocument 500 /adm/errorhandler
549: </Location>
550:
551: <Location /adm/pickcode>
552: AuthType LONCAPA
553: Require valid-user
554: PerlAuthzHandler Apache::lonacc
555: SetHandler perl-script
556: PerlHandler Apache::lonpickcode
557: ErrorDocument 403 /adm/login
558: ErrorDocument 500 /adm/errorhandler
559: </Location>
560:
561: <Location /adm/welcome>
562: SetHandler perl-script
563: PerlHandler Apache::lonwelcome
564: </Location>
565:
566: <Location /adm/login>
567: SetHandler perl-script
568: PerlHandler Apache::lonlogin
569: </Location>
570:
571: <Location /adm/restrictedaccess>
572: PerlAccessHandler Apache::publiccheck
573: AuthType LONCAPA
574: Require valid-user
575: SetHandler perl-script
576: PerlAuthzHandler Apache::lonacc
577: PerlHandler Apache::restrictedaccess
578: ErrorDocument 500 /adm/errorhandler
579: </Location>
580:
581: <Location /adm/blockedaccess>
582: PerlAccessHandler Apache::publiccheck
583: AuthType LONCAPA
584: Require valid-user
585: SetHandler perl-script
586: PerlAuthzHandler Apache::lonacc
587: PerlHandler Apache::blockedaccess
588: ErrorDocument 500 /adm/errorhandler
589: </Location>
590:
591: <Location /adm/logout>
592: AuthType LONCAPA
593: Require valid-user
594: PerlAuthzHandler Apache::lonacc
595: SetHandler perl-script
596: PerlHandler Apache::lonlogout
597: ErrorDocument 403 /adm/login
598: ErrorDocument 409 /adm/preferences?action=lockwarning
599: ErrorDocument 500 /adm/errorhandler
600: </Location>
601:
602: <Location /adm/switchserver>
603: AuthType LONCAPA
604: Require valid-user
605: PerlAuthzHandler Apache::lonacc
606: SetHandler perl-script
607: PerlHandler Apache::switchserver
608: ErrorDocument 403 /adm/login
609: ErrorDocument 500 /adm/errorhandler
610: </Location>
611:
612: <Location /adm/authenticate>
613: SetHandler perl-script
614: PerlHandler Apache::lonauth
615: </Location>
616:
617: <Location /adm/migrateuser>
618: SetHandler perl-script
619: PerlHandler Apache::migrateuser
620: </Location>
621:
622: <Location /adm/annotations>
623: AuthType LONCAPA
624: Require valid-user
625: PerlAuthzHandler Apache::lonacc
626: SetHandler perl-script
627: PerlHandler Apache::admannotations
628: ErrorDocument 403 /adm/login
629: ErrorDocument 500 /adm/errorhandler
630: </Location>
631:
632: <Location /adm/spellcheck>
633: AuthType LONCAPA
634: Require valid-user
635: PerlAuthzHandler Apache::lonacc
636: SetHandler perl-script
637: PerlHandler Apache::lonspeller
638: ErrorDocument 403 /adm/login
639: ErrorDocument 500 /adm/errorhandler
640: </Location>
641:
642: <Location /adm/bookmarks>
643: AuthType LONCAPA
644: Require valid-user
645: PerlAuthzHandler Apache::lonacc
646: SetHandler perl-script
647: PerlHandler Apache::admbookmarks
648: ErrorDocument 403 /adm/login
649: ErrorDocument 500 /adm/errorhandler
650: </Location>
651:
652: <Location /adm/flip>
653: AuthType LONCAPA
654: Require valid-user
655: PerlAuthzHandler Apache::lonacc
656: SetHandler perl-script
657: PerlHandler Apache::lonpageflip
658: PerlCleanupHandler Apache::lonpageflip::cleanup
659: PerlCleanupHandler Apache::lonacc::cleanup
660: ErrorDocument 406 /adm/roles
661: ErrorDocument 403 /adm/login
662: ErrorDocument 500 /adm/errorhandler
663: </Location>
664:
665: <Location /adm/ambiguous>
666: AuthType LONCAPA
667: Require valid-user
668: PerlAuthzHandler Apache::lonacc
669: SetHandler perl-script
670: PerlHandler Apache::lonambiguous
671: PerlCleanupHandler Apache::lonambiguous::cleanup
672: PerlCleanupHandler Apache::lonacc::cleanup
673: ErrorDocument 403 /adm/login
674: ErrorDocument 500 /adm/errorhandler
675: </Location>
676:
677: <Location /adm/email>
678: AuthType LONCAPA
679: Require valid-user
680: PerlAuthzHandler Apache::lonacc
681: SetHandler perl-script
682: PerlHandler Apache::lonmsgdisplay
683: ErrorDocument 403 /adm/login
684: ErrorDocument 500 /adm/errorhandler
685: </Location>
686:
687: <Location /adm/notify>
688: AuthType LONCAPA
689: Require valid-user
690: PerlAuthzHandler Apache::lonacc
691: SetHandler perl-script
692: PerlHandler Apache::lonnotify
693: ErrorDocument 403 /adm/login
694: ErrorDocument 500 /adm/errorhandler
695: </Location>
696:
697: <Location /adm/parmset>
698: AuthType LONCAPA
699: Require valid-user
700: PerlAuthzHandler Apache::lonacc
701: SetHandler perl-script
702: PerlHandler Apache::lonparmset
703: ErrorDocument 403 /adm/login
704: ErrorDocument 406 /adm/roles
705: ErrorDocument 500 /adm/errorhandler
706: </Location>
707:
708: <Location /adm/courseprefs>
709: AuthType LONCAPA
710: Require valid-user
711: PerlAuthzHandler Apache::lonacc
712: SetHandler perl-script
713: PerlHandler Apache::courseprefs
714: ErrorDocument 403 /adm/login
715: ErrorDocument 406 /adm/roles
716: ErrorDocument 500 /adm/errorhandler
717: </Location>
718:
719: <Location /adm/slotrequest>
720: AuthType LONCAPA
721: Require valid-user
722: PerlAuthzHandler Apache::lonacc
723: SetHandler perl-script
724: PerlHandler Apache::slotrequest
725: ErrorDocument 403 /adm/login
726: ErrorDocument 406 /adm/roles
727: ErrorDocument 500 /adm/errorhandler
728: </Location>
729:
730: <Location /adm/wizard>
731: AuthType LONCAPA
732: Require valid-user
733: PerlAuthzHandler Apache::lonacc
734: SetHandler perl-script
735: PerlHandler Apache::lonwizard
736: ErrorDocument 403 /adm/login
737: ErrorDocument 406 /adm/roles
738: ErrorDocument 500 /adm/errorhandler
739: </Location>
740:
741: <Location /adm/grades>
742: AuthType LONCAPA
743: Require valid-user
744: PerlAuthzHandler Apache::lonacc
745: SetHandler perl-script
746: PerlHandler Apache::grades
747: ErrorDocument 403 /adm/login
748: ErrorDocument 406 /adm/roles
749: ErrorDocument 500 /adm/errorhandler
750: </Location>
751:
752: <Location /adm/requestcourse>
753: AuthType LONCAPA
754: Require valid-user
755: PerlAuthzHandler Apache::lonacc
756: SetHandler perl-script
757: PerlHandler Apache::lonrequestcourse
758: ErrorDocument 403 /adm/login
759: ErrorDocument 406 /adm/roles
760: ErrorDocument 500 /adm/errorhandler
761: </Location>
762:
763: <Location /adm/createcourse>
764: AuthType LONCAPA
765: Require valid-user
766: PerlAuthzHandler Apache::lonacc
767: SetHandler perl-script
768: PerlHandler Apache::loncreatecourse
769: ErrorDocument 403 /adm/login
770: ErrorDocument 406 /adm/roles
771: ErrorDocument 500 /adm/errorhandler
772: </Location>
773:
774: <Location /adm/modifycourse>
775: AuthType LONCAPA
776: Require valid-user
777: PerlAuthzHandler Apache::lonacc
778: SetHandler perl-script
779: PerlHandler Apache::lonmodifycourse
780: ErrorDocument 403 /adm/login
781: ErrorDocument 406 /adm/roles
782: ErrorDocument 500 /adm/errorhandler
783: </Location>
784:
785: <Location /adm/domainprefs>
786: AuthType LONCAPA
787: Require valid-user
788: PerlAuthzHandler Apache::lonacc
789: SetHandler perl-script
790: PerlHandler Apache::domainprefs
791: ErrorDocument 403 /adm/login
792: ErrorDocument 406 /adm/roles
793: ErrorDocument 500 /adm/errorhandler
794: </Location>
795:
796: <Location /adm/domainstatus>
797: PerlAccessHandler Apache::lonstatusacc
798: SetHandler perl-script
799: PerlHandler Apache::domainstatus
800: ErrorDocument 403 /adm/login
801: ErrorDocument 406 /adm/roles
802: ErrorDocument 500 /adm/errorhandler
803: </Location>
804:
805: <Location /adm/createuser>
806: AuthType LONCAPA
807: Require valid-user
808: PerlAuthzHandler Apache::lonacc
809: SetHandler perl-script
810: PerlHandler Apache::loncreateuser
811: ErrorDocument 403 /adm/login
812: ErrorDocument 406 /adm/roles
813: ErrorDocument 500 /adm/errorhandler
814: </Location>
815:
816: <Location /adm/publish>
817: AuthType LONCAPA
818: Require valid-user
819: PerlAuthzHandler Apache::lonacc
820: SetHandler perl-script
821: PerlHandler Apache::lonpublisher
822: ErrorDocument 403 /adm/login
823: ErrorDocument 404 /adm/notfound.html
824: ErrorDocument 406 /adm/unauthorized
825: ErrorDocument 500 /adm/errorhandler
826: </Location>
827:
828: <LocationMatch "^/+\~.*/$">
829: AuthType LONCAPA
830: Require valid-user
831: PerlAuthzHandler Apache::loncacc
832: SetHandler perl-script
833: PerlHandler Apache::lonpubdir
834: ErrorDocument 403 /adm/login
835: ErrorDocument 404 /adm/notfound.html
836: ErrorDocument 406 /adm/unauthorized
837: ErrorDocument 500 /adm/errorhandler
838: </LocationMatch>
839:
840: <Location /adm/pubdir>
841: AuthType LONCAPA
842: Require valid-user
843: PerlAuthzHandler Apache::lonacc
844: SetHandler perl-script
845: PerlHandler Apache::lonpubdir
846: ErrorDocument 403 /adm/login
847: ErrorDocument 404 /adm/notfound.html
848: ErrorDocument 406 /adm/unauthorized
849: ErrorDocument 500 /adm/errorhandler
850: </Location>
851:
852: <Location /adm/unauthorized>
853: AuthType LONCAPA
854: Require valid-user
855: PerlAuthzHandler Apache::lonacc
856: SetHandler perl-script
857: PerlHandler Apache::lonunauthorized
858: ErrorDocument 403 /adm/login
859: ErrorDocument 404 /adm/notfound.html
860: ErrorDocument 500 /adm/errorhandler
861: </Location>
862:
863: <Location /adm/retrieve>
864: AuthType LONCAPA
865: Require valid-user
866: PerlAuthzHandler Apache::lonacc
867: SetHandler perl-script
868: PerlHandler Apache::lonretrieve
869: ErrorDocument 403 /adm/login
870: ErrorDocument 404 /adm/notfound.html
871: ErrorDocument 406 /adm/unauthorized
872: ErrorDocument 500 /adm/errorhandler
873: </Location>
874:
875: <Location /adm/cleanup>
876: AuthType LONCAPA
877: Require valid-user
878: PerlAuthzHandler Apache::lonacc
879: SetHandler perl-script
880: PerlHandler Apache::loncleanup
881: ErrorDocument 403 /adm/login
882: ErrorDocument 404 /adm/notfound.html
883: ErrorDocument 406 /adm/unauthorized
884: ErrorDocument 500 /adm/errorhandler
885: </Location>
886:
887: <Location /adm/cfile>
888: AuthType LONCAPA
889: Require valid-user
890: PerlAuthzHandler Apache::lonacc
891: SetHandler perl-script
892: PerlHandler Apache::loncfile
893: ErrorDocument 403 /adm/login
894: ErrorDocument 404 /adm/notfound.html
895: ErrorDocument 406 /adm/unauthorized
896: ErrorDocument 500 /adm/errorhandler
897: </Location>
898:
899: <Location /adm/diff>
900: AuthType LONCAPA
901: Require valid-user
902: PerlAuthzHandler Apache::lonacc
903: SetHandler perl-script
904: PerlHandler Apache::londiff
905: ErrorDocument 403 /adm/login
906: ErrorDocument 404 /adm/notfound.html
907: ErrorDocument 406 /adm/unauthorized
908: ErrorDocument 500 /adm/errorhandler
909: </Location>
910:
911: <Location /adm/upload>
912: AuthType LONCAPA
913: Require valid-user
914: PerlAuthzHandler Apache::lonacc
915: SetHandler perl-script
916: PerlHandler Apache::lonupload
917: ErrorDocument 403 /adm/login
918: ErrorDocument 404 /adm/notfound.html
919: ErrorDocument 406 /adm/unauthorized
920: ErrorDocument 500 /adm/errorhandler
921: </Location>
922:
923: <Location /adm/imsimport>
924: AuthType LONCAPA
925: Require valid-user
926: PerlAuthzHandler Apache::lonacc
927: SetHandler perl-script
928: PerlHandler Apache::imsimport
929: ErrorDocument 403 /adm/login
930: ErrorDocument 404 /adm/notfound.html
931: ErrorDocument 406 /adm/unauthorized
932: ErrorDocument 500 /adm/errorhandler
933: </Location>
934:
935: <Location /adm/testbank>
936: AuthType LONCAPA
937: Require valid-user
938: PerlAuthzHandler Apache::lonacc
939: SetHandler perl-script
940: PerlHandler Apache::testbankimport
941: ErrorDocument 403 /adm/login
942: ErrorDocument 404 /adm/notfound.html
943: ErrorDocument 406 /adm/unauthorized
944: ErrorDocument 500 /adm/errorhandler
945: </Location>
946:
947: <Location /adm/assesscalc>
948: AuthType LONCAPA
949: Require valid-user
950: PerlAuthzHandler Apache::lonacc
951: SetHandler perl-script
952: PerlHandler Apache::lonspreadsheet
953: ErrorDocument 403 /adm/login
954: ErrorDocument 406 /adm/roles
955: ErrorDocument 413 /adm/overloaded.txt
956: ErrorDocument 500 /adm/errorhandler
957: </Location>
958:
959: <Location /adm/studentcalc>
960: AuthType LONCAPA
961: Require valid-user
962: PerlAuthzHandler Apache::lonacc
963: SetHandler perl-script
964: PerlHandler Apache::lonspreadsheet
965: ErrorDocument 403 /adm/login
966: ErrorDocument 406 /adm/roles
967: ErrorDocument 413 /adm/overloaded.txt
968: ErrorDocument 500 /adm/errorhandler
969: </Location>
970:
971: <Location /adm/classcalc>
972: AuthType LONCAPA
973: Require valid-user
974: PerlAuthzHandler Apache::lonacc
975: SetHandler perl-script
976: PerlHandler Apache::lonspreadsheet
977: ErrorDocument 403 /adm/login
978: ErrorDocument 406 /adm/roles
979: ErrorDocument 413 /adm/overloaded.txt
980: ErrorDocument 500 /adm/errorhandler
981: </Location>
982:
983: <Location /adm/dropadd>
984: AuthType LONCAPA
985: Require valid-user
986: PerlAuthzHandler Apache::lonacc
987: SetHandler perl-script
988: PerlHandler Apache::londropadd
989: ErrorDocument 403 /adm/login
990: ErrorDocument 406 /adm/roles
991: ErrorDocument 500 /adm/errorhandler
992: </Location>
993:
994: <Location /adm/viewclasslist>
995: AuthType LONCAPA
996: Require valid-user
997: PerlAuthzHandler Apache::lonacc
998: SetHandler perl-script
999: PerlHandler Apache::lonviewclasslist
1000: ErrorDocument 403 /adm/login
1001: ErrorDocument 406 /adm/roles
1002: ErrorDocument 500 /adm/errorhandler
1003: </Location>
1004:
1005: <Location /adm/coursegroups>
1006: AuthType LONCAPA
1007: Require valid-user
1008: PerlAuthzHandler Apache::lonacc
1009: SetHandler perl-script
1010: PerlHandler Apache::loncoursegroups
1011: ErrorDocument 403 /adm/login
1012: ErrorDocument 406 /adm/roles
1013: ErrorDocument 500 /adm/errorhandler
1014: </Location>
1015:
1016: <Location /adm/groupboards>
1017: AuthType LONCAPA
1018: Require valid-user
1019: PerlAuthzHandler Apache::lonacc
1020: SetHandler perl-script
1021: PerlHandler Apache::groupboards
1022: ErrorDocument 403 /adm/login
1023: ErrorDocument 406 /adm/roles
1024: ErrorDocument 500 /adm/errorhandler
1025: </Location>
1026:
1027: <Location /adm/grouproster>
1028: AuthType LONCAPA
1029: Require valid-user
1030: PerlAuthzHandler Apache::lonacc
1031: SetHandler perl-script
1032: PerlHandler Apache::grouproster
1033: ErrorDocument 403 /adm/login
1034: ErrorDocument 406 /adm/roles
1035: ErrorDocument 500 /adm/errorhandler
1036: </Location>
1037:
1038: <Location /adm/whatsnew>
1039: AuthType LONCAPA
1040: Require valid-user
1041: PerlAuthzHandler Apache::lonacc
1042: SetHandler perl-script
1043: PerlHandler Apache::lonwhatsnew
1044: ErrorDocument 403 /adm/login
1045: ErrorDocument 406 /adm/roles
1046: ErrorDocument 500 /adm/errorhandler
1047: </Location>
1048:
1049: <Location /adm/populate>
1050: AuthType LONCAPA
1051: Require valid-user
1052: PerlAuthzHandler Apache::lonacc
1053: SetHandler perl-script
1054: PerlHandler Apache::lonpopulate
1055: ErrorDocument 403 /adm/login
1056: ErrorDocument 406 /adm/roles
1057: ErrorDocument 500 /adm/errorhandler
1058: </Location>
1059:
1060: <Location /adm/managekeys>
1061: AuthType LONCAPA
1062: Require valid-user
1063: PerlAuthzHandler Apache::lonacc
1064: SetHandler perl-script
1065: PerlHandler Apache::lonmanagekeys
1066: ErrorDocument 403 /adm/login
1067: ErrorDocument 406 /adm/roles
1068: ErrorDocument 500 /adm/errorhandler
1069: </Location>
1070:
1071: <Location /adm/printout>
1072: AuthType LONCAPA
1073: Require valid-user
1074: PerlAuthzHandler Apache::lonacc
1075: SetHandler perl-script
1076: PerlHandler Apache::lonprintout
1077: ErrorDocument 403 /adm/login
1078: ErrorDocument 413 /adm/overloaded.txt
1079: ErrorDocument 500 /adm/errorhandler
1080: </Location>
1081:
1082: <Location /adm/feedback>
1083: AuthType LONCAPA
1084: Require valid-user
1085: PerlAuthzHandler Apache::lonacc
1086: SetHandler perl-script
1087: PerlHandler Apache::lonfeedback
1088: ErrorDocument 403 /adm/login
1089: ErrorDocument 500 /adm/errorhandler
1090: </Location>
1091:
1092: <Location /adm/coursedocs>
1093: AuthType LONCAPA
1094: Require valid-user
1095: PerlAuthzHandler Apache::lonacc
1096: SetHandler perl-script
1097: PerlHandler Apache::londocs
1098: PerlCleanupHandler Apache::londocs::untiehash
1099: PerlCleanupHandler Apache::lonacc::cleanup
1100: ErrorDocument 403 /adm/login
1101: ErrorDocument 500 /adm/errorhandler
1102: </Location>
1103:
1104: <Location /adm/imsimportdocs>
1105: AuthType LONCAPA
1106: Require valid-user
1107: PerlAuthzHandler Apache::lonacc
1108: SetHandler perl-script
1109: PerlHandler Apache::imsimportdocs
1110: ErrorDocument 403 /adm/login
1111: ErrorDocument 500 /adm/errorhandler
1112: </Location>
1113:
1114: <LocationMatch "^/adm/announcements">
1115: AuthType LONCAPA
1116: Require valid-user
1117: PerlAuthzHandler Apache::lonacc
1118: SetHandler perl-script
1119: PerlHandler Apache::lonannounce
1120: ErrorDocument 403 /adm/login
1121: ErrorDocument 500 /adm/errorhandler
1122: </LocationMatch>
1123:
1124: <Location /adm/chat>
1125: AuthType LONCAPA
1126: Require valid-user
1127: PerlAuthzHandler Apache::lonacc
1128: SetHandler perl-script
1129: PerlHandler Apache::lonchat
1130: ErrorDocument 500 /adm/errorhandler
1131: </Location>
1132:
1133: <Location /adm/chatfetch>
1134: AuthType LONCAPA
1135: Require valid-user
1136: PerlAuthzHandler Apache::lonacc
1137: SetHandler perl-script
1138: PerlHandler Apache::lonchatfetch
1139: ErrorDocument 413 /adm/overloaded.txt
1140: ErrorDocument 500 /adm/errorhandler
1141: </Location>
1142:
1143: <Location /adm/groupchat>
1144: AuthType LONCAPA
1145: Require valid-user
1146: PerlAuthzHandler Apache::lonacc
1147: SetHandler perl-script
1148: PerlHandler Apache::longroupchat
1149: ErrorDocument 403 /adm/login
1150: ErrorDocument 500 /adm/errorhandler
1151: </Location>
1152:
1153: <Location /adm/evaluate>
1154: AuthType LONCAPA
1155: Require valid-user
1156: PerlAuthzHandler Apache::lonacc
1157: SetHandler perl-script
1158: PerlHandler Apache::lonevaluate
1159: ErrorDocument 403 /adm/login
1160: ErrorDocument 500 /adm/errorhandler
1161: </Location>
1162:
1163: <Location /adm/preferences>
1164: AuthType LONCAPA
1165: Require valid-user
1166: PerlAuthzHandler Apache::lonacc
1167: SetHandler perl-script
1168: PerlHandler Apache::lonpreferences
1169: ErrorDocument 403 /adm/login
1170: ErrorDocument 500 /adm/errorhandler
1171: </Location>
1172:
1173: <Location /adm/communicate>
1174: AuthType LONCAPA
1175: Require valid-user
1176: PerlAuthzHandler Apache::lonacc
1177: SetHandler perl-script
1178: PerlHandler Apache::loncommunicate
1179: ErrorDocument 403 /adm/login
1180: ErrorDocument 500 /adm/errorhandler
1181: </Location>
1182:
1183: <Location /adm/searchcat>
1184: AuthType LONCAPA
1185: Require valid-user
1186: PerlAuthzHandler Apache::lonacc
1187: SetHandler perl-script
1188: PerlHandler Apache::lonsearchcat
1189: PerlCleanupHandler Apache::lonsearchcat::cleanup
1190: PerlCleanupHandler Apache::lonacc::cleanup
1191: ErrorDocument 403 /adm/login
1192: ErrorDocument 413 /adm/overloaded.txt
1193: ErrorDocument 500 /adm/errorhandler
1194: </Location>
1195:
1196: <Location /adm/navmaps>
1197: AuthType LONCAPA
1198: Require valid-user
1199: PerlAuthzHandler Apache::lonacc
1200: SetHandler perl-script
1201: PerlHandler Apache::lonnavdisplay
1202: ErrorDocument 403 /adm/login
1203: ErrorDocument 406 /adm/roles
1204: ErrorDocument 500 /adm/errorhandler
1205: </Location>
1206:
1207: <Location /adm/quickgrades>
1208: AuthType LONCAPA
1209: Require valid-user
1210: PerlAuthzHandler Apache::lonacc
1211: SetHandler perl-script
1212: PerlHandler Apache::lonquickgrades
1213: ErrorDocument 403 /adm/login
1214: ErrorDocument 406 /adm/roles
1215: ErrorDocument 500 /adm/errorhandler
1216: </Location>
1217:
1218: <Location /adm/groupsort>
1219: AuthType LONCAPA
1220: Require valid-user
1221: PerlAuthzHandler Apache::lonacc
1222: SetHandler perl-script
1223: PerlHandler Apache::groupsort
1224: PerlCleanupHandler Apache::groupsort::cleanup
1225: PerlCleanupHandler Apache::lonacc::cleanup
1226: ErrorDocument 403 /adm/login
1227: ErrorDocument 500 /adm/errorhandler
1228: </Location>
1229:
1230: <Location /adm/blockingstatus>
1231: PerlAccessHandler Apache::publiccheck
1232: AuthType LONCAPA
1233: Require valid-user
1234: PerlAuthzHandler Apache::lonacc
1235: SetHandler perl-script
1236: PerlHandler Apache::lonblockingstatus
1237: </Location>
1238:
1239: <Location /adm/errorhandler>
1240: SetHandler perl-script
1241: PerlHandler Apache::lonerrorhandler
1242: </Location>
1243:
1244: <LocationMatch "^/adm/help/.*\.hlp$">
1245: AuthType LONCAPA
1246: Require valid-user
1247: PerlAccessHandler Apache::publiccheck
1248: PerlAuthzHandler Apache::lonacc
1249: SetHandler perl-script
1250: PerlHandler Apache::lonhelp
1251: ErrorDocument 500 /adm/errorhandler
1252: </LocationMatch>
1253:
1254: <LocationMatch "^/adm/helpmenu">
1255: AuthType LONCAPA
1256: Require valid-user
1257: PerlAuthzHandler Apache::lonacc
1258: SetHandler perl-script
1259: PerlHandler Apache::lonhelpmenu
1260: ErrorDocument 500 /adm/errorhandler
1261: </LocationMatch>
1262:
1263: <LocationMatch "^/adm/support">
1264: AuthType LONCAPA
1265: Require valid-user
1266: PerlAuthzHandler Apache::lonacc
1267: SetHandler perl-script
1268: PerlHandler Apache::lonsupportreq
1269: ErrorDocument 500 /adm/errorhandler
1270: </LocationMatch>
1271:
1272: <LocationMatch "^/adm/helpdesk">
1273: SetHandler perl-script
1274: PerlHandler Apache::lonsupportreq
1275: ErrorDocument 500 /adm/errorhandler
1276: </LocationMatch>
1277:
1278: <LocationMatch "^/adm/css">
1279: SetHandler perl-script
1280: PerlHandler Apache::loncss
1281: ErrorDocument 500 /adm/errorhandler
1282: </LocationMatch>
1283:
1284: <LocationMatch "^/adm/coursecatalog">
1285: SetHandler perl-script
1286: PerlHandler Apache::coursecatalog
1287: ErrorDocument 500 /adm/errorhandler
1288: </LocationMatch>
1289:
1290: <LocationMatch "^/adm/resetpw">
1291: SetHandler perl-script
1292: PerlHandler Apache::resetpw
1293: ErrorDocument 500 /adm/errorhandler
1294: </LocationMatch>
1295:
1296: <LocationMatch "^/adm/selfenroll">
1297: SetHandler perl-script
1298: PerlHandler Apache::selfenroll
1299: ErrorDocument 500 /adm/errorhandler
1300: </LocationMatch>
1301:
1302: <LocationMatch "^/adm/createaccount">
1303: SetHandler perl-script
1304: PerlHandler Apache::createaccount
1305: ErrorDocument 500 /adm/errorhandler
1306: </LocationMatch>
1307:
1308: <LocationMatch "^/adm/dns">
1309: SetHandler perl-script
1310: PerlHandler Apache::londns
1311: ErrorDocument 500 /adm/errorhandler
1312: </LocationMatch>
1313:
1314: # ------------------------------------------------- Backdoor Adm Tests/Programs
1315:
1316: <Location /adm/test>
1317: PerlAccessHandler Apache::lonstatusacc
1318: SetHandler perl-script
1319: PerlHandler Apache::lontest
1320: </Location>
1321:
1322: # ------------------------------------------------------- Shutting down a child
1323:
1324: PerlChildExitHandler Apache::lonacc::goodbye
1325:
1326: #
1327: # LON-CAPA Section (extensions to access.conf permission configuration)
1328: #
1329: # =========================================================== Directory Options
1330:
1331: # Start out with "no"
1332:
1333: <Directory />
1334: Options None
1335: AllowOverride None
1336: order deny,allow
1337: deny from all
1338: </Directory>
1339:
1340: # Allow uploaded files to be served
1341:
1342: <Directory "/home/httpd/lonUsers">
1343: Options Includes FollowSymLinks
1344: AllowOverride None
1345: order allow,deny
1346: allow from all
1347: </Directory>
1348:
1349: # Allow construction space files to be served
1350:
1351: <Directory "/home/*/public_html/" >
1352: Options Includes FollowSymLinks
1353: AllowOverride
1354: order allow,deny
1355: allow from all
1356: </Directory>
1357:
1358: # Yes to symbolic links and server-side includes
1359:
1360: <Directory /home/httpd/html>
1361: Options Includes FollowSymLinks
1362: AllowOverride None
1363: order allow,deny
1364: allow from all
1365: </Directory>
1366:
1367: # If it is in cgi-bin, then it can be executed as a CGI script.
1368:
1369: <Directory /home/httpd/cgi-bin>
1370: AllowOverride None
1371: Options ExecCGI FollowSymLinks
1372: order allow,deny
1373: allow from all
1374: </Directory>
1375:
1376: # Allow serving of files in prtspool
1377:
1378: <Directory "/home/httpd/prtspool/">
1379: Options Includes FollowSymLinks
1380: AllowOverride None
1381: order allow,deny
1382: allow from all
1383: </Directory>
1384:
1385: # Allow serving of files in zipspool
1386:
1387: <Directory "/home/httpd/zipspool/">
1388: Options Includes FollowSymLinks
1389: AllowOverride None
1390: order allow,deny
1391: allow from all
1392: </Directory>
1393:
1394: # Allow serving of files in captchaspool
1395:
1396: <Directory "/home/httpd/captchaspool/">
1397: Options Includes FollowSymLinks
1398: AllowOverride None
1399: order allow,deny
1400: allow from all
1401: </Directory>
1402:
1403: # ============================================================= Access Handlers
1404:
1405: # ------------------------------------------------- Allow server-status reports
1406: <Location /server-status>
1407: PerlAccessHandler Apache::lonstatusacc
1408: SetHandler server-status
1409: </Location>
1410:
1411: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1412: <LocationMatch "^/+lon-status/.*">
1413: PerlAccessHandler Apache::lonstatusacc
1414: ErrorDocument 406 /adm/roles
1415: ErrorDocument 500 /adm/errorhandler
1416: </LocationMatch>
1417:
1418: # ------------------- Allow access to local system documentation from localhost
1419: Alias /doc /usr/doc
1420: <Directory /usr/doc>
1421: order deny,allow
1422: deny from all
1423: allow from localhost
1424: Options Indexes FollowSymLinks
1425: </Directory>
1426:
1427: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1428: # ====================================== Internal Settings / Perl Configuration
1429:
1430: PerlSetVar lonVersion '<!-- VERSION -->'
1431: PerlSetVar lonIDsDir /home/httpd/lonIDs
1432: PerlSetVar lonTabDir /home/httpd/lonTabs
1433: PerlSetVar lonUsersDir /home/httpd/lonUsers
1434: PerlSetVar lonIconsURL /adm/lonIcons
1435: PerlSetVar londPort 5663
1436: PerlSetVar lonSysEMail korte@lite.msu.edu
1437: PerlSetVar lonDaemons /home/httpd/perl
1438: PerlSetVar lonLib /home/httpd/lib
1439: PerlSetVar lonSockDir /home/httpd/sockets
1440: PerlSetVar lonSockCreate /home/httpd/sockets/common
1441: PerlSetVar lonDocRoot /home/httpd/html
1442: PerlSetVar lonPrtDir /home/httpd/prtspool
1443: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1444: PerlSetVar lonZipDir /home/httpd/zipspool
1445: PerlSetVar lonCaptchaDir /home/httpd/captchaspool
1446: PerlSetVar lonCaptchaDb /home/httpd/captchadb
1447: PerlSetVar lonFontsDir /home/httpd/html/adm/fonts
1448: # & separated list of : separated fields in order of
1449: # - internal name to call it,
1450: # - regexp that it should match (done case-insensitively)
1451: # - regexp that is should not match (done case-insensitively)
1452: # - regexp that will pull out the version number into $1
1453: # - a number that describes the minimum version that has mathml support
1454: # - a number that describes the minimum number version that has unicode support
1455:
1456: 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
1457:
1458: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1459: PerlSetVar lonScansDir /home/httpd/scantron
1460: PerlSetVar lonScriptTimeout 10
1461: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1462: PerlSetVar FAQHost http://help.lon-capa.org/
1463: # -----------------------------------------------------------------------------
1464: # NOTE: lonSqlAccess key is the password for the MySQL user
1465: # www@localhost. This value must always be "localhostkey".
1466: # The only security risk occurs when somebody logs in as 'www' on your system
1467: # (in which case you have much bigger problems than whether or not they
1468: # can access the non-authoritative loncapa database on your machine).
1469:
1470: PerlSetVar lonSqlAccess localhostkey
1471:
1472: #----------------------------------------------------------------------------
1473: #
1474: # Parameters used by secure lond/lonc
1475:
1476: #
1477: # Secure lond/lonc require ssl certificate and private
1478: # key files to function correctly. The certificate
1479: # files need not be terribly secure, but the private key files
1480: # should be set up so that only www (the lonc/lond effective user)
1481: # can read them.
1482: #
1483: # The definition below is the full path to the directory that
1484: # contains the certificate and key files:
1485:
1486: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1487:
1488: #
1489: # Secure lond/lonc require two certificates and a private host key.
1490: # The certificates required are that of the lonCAPA certificate authority
1491: # and the certificate that authority issued to this host.
1492: # lonnetCertificateAuthority is the name of the file that contains the
1493: # lonCAPA certificate authority's certificate.
1494: # lonnetCertificate is the name of the file that contains the certificate
1495: # issued to the host by the certificate authority.
1496: # Both of these variables are names of files assumed to be in
1497: # lonCertificateDirectory:
1498:
1499: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1500: PerlSetVar lonnetCertificate lonhostcert.pem
1501:
1502: #
1503: # To generate the request for a certificate, and to negotiate the
1504: # initial ssl connection, the host requires a private key. This key
1505: # is created at lonCAPA install time. Did we mention above that it
1506: # should be set so that only www can read it? The variale below
1507: # is the name of the file relative to lonnetCertificateDirectory
1508: # that has the host's private key. Did we remember to tell you to
1509: # keep the permissions on that file set to rw------- (0600)?
1510: #
1511:
1512: PerlSetVar lonnetPrivateKey lonKey.pem
1513:
1514: # Did we mention that the file described above must have
1515: # permissions really locked down so that it can't be stolen?
1516:
1517: #-------------------------------------------------------------------------
1518:
1519: # Parameters that define where all the ssl stuff is that's needed
1520: # to generate certificate requests and, on a system that's a CA
1521: # the certificate authority.
1522: #
1523: # SSLProgram -> Path to the openssl command
1524: # SSLDirectory -> Directory containing ssl configuration files etc.
1525: # SSLCAConfig -> Name of the SSL config file for the certificate
1526: # Authority.
1527: # SSLCAFile -> Full path to the Certificate authority file
1528: # (on the cert manager system).
1529: # SSLEmail -> E-mail address of loncapa certificate manager.
1530: # The following are good for the loncapa redhat installs and
1531: # the loncapa certificate authority system:
1532: #
1533: PerlSetVar SSLProgram /usr/bin/openssl
1534: PerlSetVar SSLDirectory /usr/share/ssl
1535: PerlSetVar SSLCAConfig loncapaca
1536: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1537: PerlSetVar SSLEmail certificate@lon-capa.org
1538:
1539: #-------------------------------------------------------------------------
1540: PerlSetVar AnonymousSalt <Salt Placeholder>
1541:
1542:
1543: # ====================================== Include machine-specific configuration
1544:
1545: Include conf/loncapa.conf
1546:
1547: # ================================================= Include local configuration
1548:
1549: Include conf/loncapa_apache_local*.conf
1550:
1551: # ================================================== Initiate mod_perl starting
1552:
1553: PerlRequire conf/startup.pl
1554: <IfDefine !MODPERL2>
1555: PerlFreshRestart On
1556: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>