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