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