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