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