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