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