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