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