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