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