Annotation of loncom/loncapa_apache.conf, revision 1.118
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.118 ! raeburn 4: ## $Id: loncapa_apache.conf,v 1.117 2005/10/24 21:32:35 albertel Exp $
1.1 harris41 5: ##
6:
7: #
8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
9: #
1.8 harris41 10: # ================================================================ DocumentRoot
1.1 harris41 11:
12: DocumentRoot "/home/httpd/html"
13:
14: # ======================================================================== User
15:
16: User www
17: Group www
18:
19: # ======================================================= Shared Object Modules
20:
1.52 albertel 21: LoadModule perl_module modules/libperl.so
1.47 albertel 22: <IfDefine !MODPERL2>
1.1 harris41 23: AddModule mod_perl.c
1.47 albertel 24: </IfDefine>
1.1 harris41 25:
1.63 albertel 26: <IfDefine MODPERL2>
27: PerlSetVar MODPERL2 1
28: </IfDefine>
1.1 harris41 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/
1.8 harris41 39: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.1 harris41 40:
41: # ================================================================= Directories
42:
43: # ------------------------------------------------------------- Access Handlers
44:
1.12 www 45: PerlTransHandler Apache::lontrans
1.95 albertel 46: PerlCleanupHandler Apache::lonnet::save_cache
1.12 www 47:
1.45 albertel 48: #PerlWarn On
1.21 www 49: <LocationMatch "^/+res.*">
1.1 harris41 50: PerlAccessHandler Apache::lonacc
51: PerlHeaderParserHandler Apache::lonrep
52: ErrorDocument 403 /adm/login
53: ErrorDocument 404 /adm/notfound.html
54: ErrorDocument 406 /adm/roles
1.74 www 55: ErrorDocument 500 /adm/errorhandler
56: </LocationMatch>
57:
58: <LocationMatch "^/+enc.*">
1.115 raeburn 59: SetHandler perl-script
60: PerlHandler Apache::lonenc
1.74 www 61: ErrorDocument 403 /adm/login
1.80 albertel 62: ErrorDocument 404 /adm/notfound.html
63: ErrorDocument 406 /adm/roles
1.11 www 64: ErrorDocument 500 /adm/errorhandler
65: </LocationMatch>
66:
1.84 banghart 67: <Location /adm/portfolio>
68: PerlAccessHandler Apache::lonacc
69: SetHandler perl-script
70: PerlHandler Apache::portfolio
71: </Location>
72:
1.21 www 73: <LocationMatch "^/+userfiles.*">
1.11 www 74: PerlAccessHandler Apache::lontokacc
1.58 www 75: PerlCleanupHandler Apache::lontokacc::removefile
1.108 albertel 76: PerlCleanupHandler Apache::lonnet::save_cache
1.12 www 77: </LocationMatch>
78:
1.76 albertel 79: <LocationMatch "^/+uploaded.*">
1.75 raeburn 80: PerlAccessHandler Apache::lonacc
81: PerlHeaderParserHandler Apache::lonuploadrep
1.80 albertel 82: ErrorDocument 403 /adm/login
1.16 www 83: ErrorDocument 404 /adm/notfound.html
1.80 albertel 84: ErrorDocument 406 /adm/roles
1.16 www 85: ErrorDocument 500 /adm/errorhandler
1.75 raeburn 86: </LocationMatch>
87:
1.106 albertel 88: <LocationMatch "^/+editupload.*">
89: PerlAccessHandler Apache::lonacc
90: ErrorDocument 403 /adm/login
91: ErrorDocument 406 /adm/roles
92: ErrorDocument 500 /adm/errorhandler
93: </LocationMatch>
94:
1.98 albertel 95: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
96: PerlAccessHandler Apache::lonuploadedacc
97: </LocationMatch>
98:
99:
1.76 albertel 100: <LocationMatch "^/+uploaded/.*\.page$">
1.75 raeburn 101: SetHandler perl-script
102: PerlHandler Apache::lonpage
103: </LocationMatch>
104:
1.76 albertel 105: <LocationMatch "^/+uploaded/.*\.sequence$">
1.75 raeburn 106: SetHandler perl-script
107: PerlHandler Apache::lonsequence
1.16 www 108: </LocationMatch>
109:
1.44 www 110: <LocationMatch "^/+public/.*/syllabus$">
1.17 www 111: PerlAccessHandler Apache::lonacc
1.16 www 112: SetHandler perl-script
113: PerlHandler Apache::lonsyllabus
114: ErrorDocument 404 /adm/notfound.html
115: ErrorDocument 500 /adm/errorhandler
116: </LocationMatch>
117:
1.44 www 118: <LocationMatch "^/adm/.*/aboutme$">
1.17 www 119: PerlAccessHandler Apache::lonacc
1.16 www 120: SetHandler perl-script
121: PerlHandler Apache::lonaboutme
1.19 www 122: ErrorDocument 404 /adm/notfound.html
1.54 www 123: ErrorDocument 406 /adm/notinit.html
1.19 www 124: ErrorDocument 500 /adm/errorhandler
125: </LocationMatch>
126:
1.44 www 127: <LocationMatch "^/adm/.*/smppg$">
1.19 www 128: PerlAccessHandler Apache::lonacc
129: SetHandler perl-script
130: PerlHandler Apache::lonsimplepage
131: ErrorDocument 404 /adm/notfound.html
1.54 www 132: ErrorDocument 406 /adm/notinit.html
1.19 www 133: ErrorDocument 500 /adm/errorhandler
134: </LocationMatch>
135:
1.44 www 136: <LocationMatch "^/adm/.*/bulletinboard$">
1.19 www 137: PerlAccessHandler Apache::lonacc
138: SetHandler perl-script
1.94 albertel 139: PerlHandler Apache::londatecheck
1.19 www 140: PerlHandler Apache::lonbulletin
1.55 www 141: ErrorDocument 404 /adm/notfound.html
142: ErrorDocument 406 /adm/notinit.html
143: ErrorDocument 500 /adm/errorhandler
144: </LocationMatch>
145:
146: <LocationMatch "\.problem/smpedit$">
147: PerlAccessHandler Apache::lonacc
148: SetHandler perl-script
149: PerlHandler Apache::lonsimpleproblemedit
1.11 www 150: ErrorDocument 404 /adm/notfound.html
1.54 www 151: ErrorDocument 406 /adm/notinit.html
1.1 harris41 152: ErrorDocument 500 /adm/errorhandler
153: </LocationMatch>
154:
1.21 www 155: <LocationMatch "^/+priv.*">
1.1 harris41 156: PerlAccessHandler Apache::loncacc
157: SetHandler perl-script
158: PerlHandler Apache::lonconstruct
159: ErrorDocument 403 /adm/login
160: ErrorDocument 404 /adm/notfound.html
1.18 www 161: ErrorDocument 406 /adm/unauthorized
1.1 harris41 162: ErrorDocument 500 /adm/errorhandler
163: </LocationMatch>
164:
1.21 www 165: <LocationMatch "^/+raw.*">
1.1 harris41 166: PerlAccessHandler Apache::lonracc
167: </LocationMatch>
168:
1.21 www 169: <LocationMatch "^/+\~.*">
1.1 harris41 170: PerlAccessHandler Apache::loncacc
171: ErrorDocument 403 /adm/login
172: ErrorDocument 404 /adm/notfound.html
1.18 www 173: ErrorDocument 406 /adm/unauthorized
1.1 harris41 174: ErrorDocument 500 /adm/errorhandler
175: AllowOverride None
176: </LocationMatch>
177:
1.41 bowersj2 178: <LocationMatch "^/adm/helper/.*\.helper$">
179: PerlAccessHandler Apache::lonacc
180: SetHandler perl-script
181: PerlHandler Apache::lonhelper
182: ErrorDocument 403 /adm/login
183: ErrorDocument 404 /adm/notfound.html
184: ErrorDocument 406 /adm/unauthorized
185: ErrorDocument 500 /adm/errorhandler
186: </LocationMatch>
187:
1.23 albertel 188: <LocationMatch "/prtspool">
189: PerlAccessHandler Apache::lonacc
190: ErrorDocument 403 /adm/login
191: ErrorDocument 404 /adm/notfound.html
192: ErrorDocument 406 /adm/roles
1.99 www 193: ErrorDocument 413 /adm/overloaded.txt
1.23 albertel 194: ErrorDocument 500 /adm/errorhandler
195: </LocationMatch>
1.1 harris41 196: # ------------------------------------------------------------------------- RAT
197:
198: <LocationMatch "^/\~.*\.sequence$">
199: SetHandler perl-script
200: PerlHandler Apache::lonratedt
201: </LocationMatch>
202:
203: <LocationMatch "^/\~.*\.page$">
204: SetHandler perl-script
205: PerlHandler Apache::lonratedt
206: </LocationMatch>
207:
208: <LocationMatch "^/\~.*\/ratserver$">
209: SetHandler perl-script
210: PerlHandler Apache::lonratsrv
211: </LocationMatch>
212:
1.100 raeburn 213: <LocationMatch "^/\~.*\/adveditmenu$">
214: SetHandler perl-script
215: PerlHandler Apache::lonratmenu
216: </LocationMatch>
217:
1.1 harris41 218: <Location /adm/ratparms>
219: PerlAccessHandler Apache::lonacc
220: SetHandler perl-script
221: PerlHandler Apache::lonratparms
222: ErrorDocument 403 /adm/login
223: ErrorDocument 500 /adm/errorhandler
224: </Location>
225:
226: # --------------------------------------------- Resource Space Content Handlers
227:
1.64 albertel 228: <LocationMatch "^/+res.*/$">
1.1 harris41 229: SetHandler perl-script
230: PerlHandler Apache::lonindexer
1.29 www 231: PerlCleanupHandler Apache::lonindexer::cleanup
1.108 albertel 232: PerlCleanupHandler Apache::lonnet::save_cache
1.1 harris41 233: </LocationMatch>
234:
1.64 albertel 235: <LocationMatch "^/+(res|\~).*\.tex$">
1.1 harris41 236: SetHandler perl-script
237: PerlHandler Apache::lontex
238: </LocationMatch>
239:
1.71 www 240: <LocationMatch "^/+res/.*\.page$">
1.1 harris41 241: SetHandler perl-script
242: PerlHandler Apache::lonpage
243: </LocationMatch>
244:
1.71 www 245: <LocationMatch "^/+res/.*\.sequence$">
1.1 harris41 246: SetHandler perl-script
247: PerlHandler Apache::lonsequence
248: </LocationMatch>
249:
1.106 albertel 250: <LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$">
1.1 harris41 251: SetHandler perl-script
252: PerlHandler Apache::lonmeta
1.99 www 253: ErrorDocument 413 /adm/overloaded.txt
1.39 www 254: </LocationMatch>
255:
1.71 www 256: <LocationMatch "^/adm/bombs/">
257: SetHandler perl-script
258: PerlAccessHandler Apache::lonacc
259: PerlHandler Apache::lonmeta
260: </LocationMatch>
261:
262:
263:
264: <LocationMatch "^/+(res|\~).*\.rights$">
1.39 www 265: SetHandler perl-script
266: PerlHandler Apache::lonrights
1.1 harris41 267: </LocationMatch>
268:
1.78 albertel 269: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
1.1 harris41 270: SetHandler perl-script
1.81 albertel 271: PerlHandler Apache::londatecheck
1.1 harris41 272: PerlHandler Apache::lonxml
273: </LocationMatch>
274:
1.107 albertel 275: <LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
1.1 harris41 276: SetHandler perl-script
277: PerlHandler Apache::lonhomework
278: </LocationMatch>
279:
280: <LocationMatch "^/adm/wrapper/">
281: PerlAccessHandler Apache::lonacc
282: SetHandler perl-script
283: PerlHandler Apache::lonwrapper
1.66 www 284: ErrorDocument 403 /adm/login
285: ErrorDocument 500 /adm/errorhandler
286: </LocationMatch>
287:
1.113 www 288: <LocationMatch "^/adm/source">
1.83 taceyjo1 289: PerlAccessHandler Apache::lonacc
290: SetHandler perl-script
291: PerlHandler Apache::lonsource
292: ErrorDocument 403 /adm/login
1.85 www 293: ErrorDocument 406 /adm/roles
1.83 taceyjo1 294: ErrorDocument 500 /adm/errorhandler
295: </LocationMatch>
296:
297:
1.66 www 298: <LocationMatch "^/adm/localize/">
299: PerlAccessHandler Apache::lonacc
300: SetHandler perl-script
301: PerlHandler Apache::lonlocal
1.1 harris41 302: ErrorDocument 403 /adm/login
303: ErrorDocument 500 /adm/errorhandler
304: </LocationMatch>
305:
306: # -------------------------------------------------------------- Admin Programs
1.24 albertel 307:
308: <Location /adm/randomlabel.png>
309: PerlAccessHandler Apache::lonacc
310: SetHandler perl-script
311: PerlHandler Apache::randomlylabel
1.69 albertel 312: ErrorDocument 403 /adm/login
313: ErrorDocument 500 /adm/errorhandler
314: </Location>
315:
316: <Location /adm/imagechoice>
317: PerlAccessHandler Apache::lonacc
318: SetHandler perl-script
319: PerlHandler Apache::imagechoice
1.24 albertel 320: ErrorDocument 403 /adm/login
321: ErrorDocument 500 /adm/errorhandler
322: </Location>
1.1 harris41 323:
324: <Location /adm/statistics>
325: PerlAccessHandler Apache::lonacc
326: SetHandler perl-script
327: PerlHandler Apache::lonstatistics
328: ErrorDocument 403 /adm/login
1.20 www 329: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 330: ErrorDocument 500 /adm/errorhandler
331: </Location>
332:
1.92 matthew 333: <Location /adm/trackstudent>
334: PerlAccessHandler Apache::lonacc
335: SetHandler perl-script
336: PerlHandler Apache::lontrackstudent
337: ErrorDocument 403 /adm/login
338: ErrorDocument 413 /adm/overloaded.txt
339: ErrorDocument 500 /adm/errorhandler
340: </Location>
341:
1.1 harris41 342: <Location /adm/roles>
343: PerlAccessHandler Apache::lonacc
344: SetHandler perl-script
345: PerlHandler Apache::lonroles
1.33 www 346: ErrorDocument 403 /adm/login
347: ErrorDocument 500 /adm/errorhandler
348: </Location>
349:
350: <Location /adm/menu>
351: PerlAccessHandler Apache::lonacc
352: SetHandler perl-script
353: PerlHandler Apache::lonmenu
1.42 www 354: ErrorDocument 403 /adm/login
355: ErrorDocument 500 /adm/errorhandler
356: </Location>
357:
358: <Location /adm/remote>
359: PerlAccessHandler Apache::lonacc
360: SetHandler perl-script
361: PerlHandler Apache::lonremote
1.27 www 362: ErrorDocument 403 /adm/login
363: ErrorDocument 500 /adm/errorhandler
364: </Location>
365:
366: <Location /adm/pickstudent>
367: PerlAccessHandler Apache::lonacc
368: SetHandler perl-script
369: PerlHandler Apache::lonpickstudent
1.40 www 370: ErrorDocument 403 /adm/login
371: ErrorDocument 500 /adm/errorhandler
372: </Location>
373:
374: <Location /adm/pickcourse>
375: PerlAccessHandler Apache::lonacc
376: SetHandler perl-script
377: PerlHandler Apache::lonpickcourse
1.77 albertel 378: ErrorDocument 403 /adm/login
379: ErrorDocument 500 /adm/errorhandler
380: </Location>
381:
382: <Location /adm/pickcode>
383: PerlAccessHandler Apache::lonacc
384: SetHandler perl-script
385: PerlHandler Apache::lonpickcode
1.1 harris41 386: ErrorDocument 403 /adm/login
387: ErrorDocument 500 /adm/errorhandler
388: </Location>
389:
390: <Location /adm/login>
391: SetHandler perl-script
392: PerlHandler Apache::lonlogin
393: </Location>
394:
395: <Location /adm/logout>
396: PerlAccessHandler Apache::lonacc
397: SetHandler perl-script
398: PerlHandler Apache::lonlogout
399: ErrorDocument 403 /adm/login
400: </Location>
401:
1.117 albertel 402: <Location /adm/switchserver>
403: PerlAccessHandler Apache::lonacc
404: SetHandler perl-script
405: PerlHandler Apache::switchserver
406: ErrorDocument 403 /adm/login
407: </Location>
408:
1.1 harris41 409: <Location /adm/authenticate>
410: SetHandler perl-script
411: PerlHandler Apache::lonauth
412: </Location>
413:
1.117 albertel 414: <Location /adm/migrateuser>
415: SetHandler perl-script
416: PerlHandler Apache::migrateuser
417: </Location>
418:
1.1 harris41 419: <Location /adm/annotations>
420: PerlAccessHandler Apache::lonacc
421: SetHandler perl-script
422: PerlHandler Apache::admannotations
423: ErrorDocument 403 /adm/login
424: ErrorDocument 500 /adm/errorhandler
425: </Location>
426:
1.91 www 427: <Location /adm/spellcheck>
428: PerlAccessHandler Apache::lonacc
429: SetHandler perl-script
430: PerlHandler Apache::lonspeller
431: ErrorDocument 403 /adm/login
432: ErrorDocument 500 /adm/errorhandler
433: </Location>
434:
1.1 harris41 435: <Location /adm/bookmarks>
436: PerlAccessHandler Apache::lonacc
437: SetHandler perl-script
438: PerlHandler Apache::admbookmarks
439: ErrorDocument 403 /adm/login
440: ErrorDocument 500 /adm/errorhandler
441: </Location>
442:
443: <Location /adm/flip>
444: PerlAccessHandler Apache::lonacc
445: SetHandler perl-script
446: PerlHandler Apache::lonpageflip
1.30 www 447: PerlCleanupHandler Apache::lonpageflip::cleanup
1.108 albertel 448: PerlCleanupHandler Apache::lonnet::save_cache
1.1 harris41 449: ErrorDocument 406 /adm/roles
450: ErrorDocument 403 /adm/login
451: ErrorDocument 500 /adm/errorhandler
452: </Location>
453:
454: <Location /adm/ambiguous>
455: PerlAccessHandler Apache::lonacc
456: SetHandler perl-script
457: PerlHandler Apache::lonambiguous
1.30 www 458: PerlCleanupHandler Apache::lonambiguous::cleanup
1.108 albertel 459: PerlCleanupHandler Apache::lonnet::save_cache
1.1 harris41 460: ErrorDocument 403 /adm/login
461: ErrorDocument 500 /adm/errorhandler
462: </Location>
463:
464: <Location /adm/email>
465: PerlAccessHandler Apache::lonacc
466: SetHandler perl-script
467: PerlHandler Apache::lonmsg
468: ErrorDocument 403 /adm/login
469: ErrorDocument 500 /adm/errorhandler
470: </Location>
471:
1.116 raeburn 472: <Location /adm/notify>
473: PerlAccessHandler Apache::lonacc
474: SetHandler perl-script
475: PerlHandler Apache::lonnotify
476: ErrorDocument 403 /adm/login
477: ErrorDocument 500 /adm/errorhandler
478: </Location>
479:
1.1 harris41 480: <Location /adm/parmset>
481: PerlAccessHandler Apache::lonacc
482: SetHandler perl-script
483: PerlHandler Apache::lonparmset
1.31 bowersj2 484: ErrorDocument 403 /adm/login
485: ErrorDocument 406 /adm/roles
486: ErrorDocument 500 /adm/errorhandler
487: </Location>
488:
1.110 albertel 489: <Location /adm/slotrequest>
490: PerlAccessHandler Apache::lonacc
491: SetHandler perl-script
492: PerlHandler Apache::slotrequest
493: ErrorDocument 403 /adm/login
494: ErrorDocument 406 /adm/roles
495: ErrorDocument 500 /adm/errorhandler
496: </Location>
497:
1.31 bowersj2 498: <Location /adm/wizard>
499: PerlAccessHandler Apache::lonacc
500: SetHandler perl-script
501: PerlHandler Apache::lonwizard
1.1 harris41 502: ErrorDocument 403 /adm/login
503: ErrorDocument 406 /adm/roles
504: ErrorDocument 500 /adm/errorhandler
505: </Location>
506:
507: <Location /adm/grades>
508: PerlAccessHandler Apache::lonacc
509: SetHandler perl-script
510: PerlHandler Apache::grades
511: ErrorDocument 403 /adm/login
512: ErrorDocument 406 /adm/roles
513: ErrorDocument 500 /adm/errorhandler
514: </Location>
515:
516: <Location /adm/createcourse>
517: PerlAccessHandler Apache::lonacc
518: SetHandler perl-script
519: PerlHandler Apache::loncreatecourse
520: ErrorDocument 403 /adm/login
521: ErrorDocument 406 /adm/roles
522: ErrorDocument 500 /adm/errorhandler
1.67 raeburn 523: </Location>
524:
525: <Location /adm/modifycourse>
526: PerlAccessHandler Apache::lonacc
527: SetHandler perl-script
528: PerlHandler Apache::lonmodifycourse
529: ErrorDocument 403 /adm/login
530: ErrorDocument 406 /adm/roles
531: ErrorDocument 500 /adm/errorhandler
1.1 harris41 532: </Location>
533:
534: <Location /adm/createuser>
535: PerlAccessHandler Apache::lonacc
536: SetHandler perl-script
537: PerlHandler Apache::loncreateuser
538: ErrorDocument 403 /adm/login
539: ErrorDocument 406 /adm/roles
540: ErrorDocument 500 /adm/errorhandler
541: </Location>
542:
543: <Location /adm/publish>
544: PerlAccessHandler Apache::lonacc
545: SetHandler perl-script
546: PerlHandler Apache::lonpublisher
547: ErrorDocument 403 /adm/login
548: ErrorDocument 404 /adm/notfound.html
1.18 www 549: ErrorDocument 406 /adm/unauthorized
1.1 harris41 550: ErrorDocument 500 /adm/errorhandler
551: </Location>
552:
1.64 albertel 553: <LocationMatch "^/+\~.*/$">
1.1 harris41 554: PerlAccessHandler Apache::loncacc
555: SetHandler perl-script
556: PerlHandler Apache::lonpubdir
557: ErrorDocument 403 /adm/login
558: ErrorDocument 404 /adm/notfound.html
1.18 www 559: ErrorDocument 406 /adm/unauthorized
1.1 harris41 560: ErrorDocument 500 /adm/errorhandler
561: </LocationMatch>
562:
563: <Location /adm/pubdir>
564: PerlAccessHandler Apache::lonacc
565: SetHandler perl-script
566: PerlHandler Apache::lonpubdir
567: ErrorDocument 403 /adm/login
568: ErrorDocument 404 /adm/notfound.html
1.18 www 569: ErrorDocument 406 /adm/unauthorized
570: ErrorDocument 500 /adm/errorhandler
571: </Location>
572:
573: <Location /adm/unauthorized>
574: PerlAccessHandler Apache::lonacc
575: SetHandler perl-script
576: PerlHandler Apache::lonunauthorized
577: ErrorDocument 403 /adm/login
578: ErrorDocument 404 /adm/notfound.html
1.1 harris41 579: ErrorDocument 500 /adm/errorhandler
580: </Location>
581:
582: <Location /adm/retrieve>
583: PerlAccessHandler Apache::lonacc
584: SetHandler perl-script
585: PerlHandler Apache::lonretrieve
586: ErrorDocument 403 /adm/login
587: ErrorDocument 404 /adm/notfound.html
1.18 www 588: ErrorDocument 406 /adm/unauthorized
1.1 harris41 589: ErrorDocument 500 /adm/errorhandler
590: </Location>
591:
1.109 www 592: <Location /adm/cleanup>
593: PerlAccessHandler Apache::lonacc
594: SetHandler perl-script
595: PerlHandler Apache::loncleanup
596: ErrorDocument 403 /adm/login
597: ErrorDocument 404 /adm/notfound.html
598: ErrorDocument 406 /adm/unauthorized
599: ErrorDocument 500 /adm/errorhandler
600: </Location>
601:
1.1 harris41 602: <Location /adm/cfile>
603: PerlAccessHandler Apache::lonacc
604: SetHandler perl-script
605: PerlHandler Apache::loncfile
606: ErrorDocument 403 /adm/login
607: ErrorDocument 404 /adm/notfound.html
1.18 www 608: ErrorDocument 406 /adm/unauthorized
1.1 harris41 609: ErrorDocument 500 /adm/errorhandler
610: </Location>
611:
612: <Location /adm/diff>
613: PerlAccessHandler Apache::lonacc
614: SetHandler perl-script
615: PerlHandler Apache::londiff
616: ErrorDocument 403 /adm/login
617: ErrorDocument 404 /adm/notfound.html
1.18 www 618: ErrorDocument 406 /adm/unauthorized
1.1 harris41 619: ErrorDocument 500 /adm/errorhandler
620: </Location>
621:
622: <Location /adm/upload>
623: PerlAccessHandler Apache::lonacc
624: SetHandler perl-script
625: PerlHandler Apache::lonupload
626: ErrorDocument 403 /adm/login
627: ErrorDocument 404 /adm/notfound.html
1.18 www 628: ErrorDocument 406 /adm/unauthorized
1.1 harris41 629: ErrorDocument 500 /adm/errorhandler
1.72 raeburn 630: </Location>
631:
1.73 raeburn 632: <Location /adm/imsimport>
633: PerlAccessHandler Apache::lonacc
634: SetHandler perl-script
635: PerlHandler Apache::imsimport
636: ErrorDocument 403 /adm/login
637: ErrorDocument 404 /adm/notfound.html
638: ErrorDocument 406 /adm/unauthorized
639: ErrorDocument 500 /adm/errorhandler
640: </Location>
641:
1.72 raeburn 642: <Location /adm/testbank>
643: PerlAccessHandler Apache::lonacc
644: SetHandler perl-script
645: PerlHandler Apache::testbankimport
646: ErrorDocument 403 /adm/login
647: ErrorDocument 404 /adm/notfound.html
648: ErrorDocument 406 /adm/unauthorized
649: ErrorDocument 500 /adm/errorhandler
1.1 harris41 650: </Location>
651:
652: <Location /adm/assesscalc>
653: PerlAccessHandler Apache::lonacc
654: SetHandler perl-script
655: PerlHandler Apache::lonspreadsheet
656: ErrorDocument 403 /adm/login
657: ErrorDocument 406 /adm/roles
1.20 www 658: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 659: ErrorDocument 500 /adm/errorhandler
660: </Location>
661:
662: <Location /adm/studentcalc>
663: PerlAccessHandler Apache::lonacc
664: SetHandler perl-script
665: PerlHandler Apache::lonspreadsheet
666: ErrorDocument 403 /adm/login
667: ErrorDocument 406 /adm/roles
1.20 www 668: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 669: ErrorDocument 500 /adm/errorhandler
670: </Location>
671:
672: <Location /adm/classcalc>
673: PerlAccessHandler Apache::lonacc
674: SetHandler perl-script
675: PerlHandler Apache::lonspreadsheet
676: ErrorDocument 403 /adm/login
677: ErrorDocument 406 /adm/roles
1.20 www 678: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 679: ErrorDocument 500 /adm/errorhandler
680: </Location>
681:
682: <Location /adm/dropadd>
683: PerlAccessHandler Apache::lonacc
684: SetHandler perl-script
685: PerlHandler Apache::londropadd
1.44 www 686: ErrorDocument 403 /adm/login
687: ErrorDocument 406 /adm/roles
688: ErrorDocument 500 /adm/errorhandler
1.65 raeburn 689: </Location>
690:
1.92 matthew 691: <Location /adm/viewclasslist>
692: PerlAccessHandler Apache::lonacc
693: SetHandler perl-script
694: PerlHandler Apache::lonviewclasslist
695: ErrorDocument 403 /adm/login
696: ErrorDocument 406 /adm/roles
697: ErrorDocument 500 /adm/errorhandler
698: </Location>
699:
1.118 ! raeburn 700: <Location /adm/coursegroups>
! 701: PerlAccessHandler Apache::lonacc
! 702: SetHandler perl-script
! 703: PerlHandler Apache::loncoursegroups
! 704: ErrorDocument 403 /adm/login
! 705: ErrorDocument 406 /adm/roles
! 706: ErrorDocument 500 /adm/errorhandler
! 707: </Location>
! 708:
1.112 raeburn 709: <Location /adm/whatsnew>
710: PerlAccessHandler Apache::lonacc
711: SetHandler perl-script
712: PerlHandler Apache::lonwhatsnew
713: ErrorDocument 403 /adm/login
714: ErrorDocument 406 /adm/roles
715: ErrorDocument 500 /adm/errorhandler
716: </Location>
717:
1.65 raeburn 718: <Location /adm/populate>
719: PerlAccessHandler Apache::lonacc
720: SetHandler perl-script
721: PerlHandler Apache::lonpopulate
722: ErrorDocument 403 /adm/login
723: ErrorDocument 406 /adm/roles
724: ErrorDocument 500 /adm/errorhandler
1.44 www 725: </Location>
726:
727: <Location /adm/managekeys>
728: PerlAccessHandler Apache::lonacc
729: SetHandler perl-script
730: PerlHandler Apache::lonmanagekeys
1.1 harris41 731: ErrorDocument 403 /adm/login
732: ErrorDocument 406 /adm/roles
733: ErrorDocument 500 /adm/errorhandler
734: </Location>
735:
736: <Location /adm/printout>
737: PerlAccessHandler Apache::lonacc
738: SetHandler perl-script
739: PerlHandler Apache::lonprintout
740: ErrorDocument 403 /adm/login
1.20 www 741: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 742: ErrorDocument 500 /adm/errorhandler
743: </Location>
744:
745: <Location /adm/feedback>
746: PerlAccessHandler Apache::lonacc
747: SetHandler perl-script
748: PerlHandler Apache::lonfeedback
1.10 www 749: ErrorDocument 403 /adm/login
750: ErrorDocument 500 /adm/errorhandler
751: </Location>
752:
753: <Location /adm/coursedocs>
754: PerlAccessHandler Apache::lonacc
755: SetHandler perl-script
756: PerlHandler Apache::londocs
1.108 albertel 757: PerlCleanupHandler Apache::londocs::untiehash
758: PerlCleanupHandler Apache::lonnet::save_cache
1.10 www 759: ErrorDocument 403 /adm/login
760: ErrorDocument 500 /adm/errorhandler
1.73 raeburn 761: </Location>
762:
763: <Location /adm/imsimportdocs>
764: PerlAccessHandler Apache::lonacc
765: SetHandler perl-script
766: PerlHandler Apache::imsimportdocs
767: ErrorDocument 403 /adm/login
768: ErrorDocument 500 /adm/errorhandler
1.10 www 769: </Location>
770:
771: <Location /adm/announcements>
772: PerlAccessHandler Apache::lonacc
773: SetHandler perl-script
774: PerlHandler Apache::lonannounce
775: ErrorDocument 403 /adm/login
776: ErrorDocument 500 /adm/errorhandler
777: </Location>
778:
779: <Location /adm/chat>
780: PerlAccessHandler Apache::lonacc
781: SetHandler perl-script
782: PerlHandler Apache::lonchat
1.13 www 783: ErrorDocument 500 /adm/errorhandler
784: </Location>
785:
786: <Location /adm/chatfetch>
787: PerlAccessHandler Apache::lonacc
788: SetHandler perl-script
789: PerlHandler Apache::lonchatfetch
1.20 www 790: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 791: ErrorDocument 500 /adm/errorhandler
792: </Location>
793:
794: <Location /adm/evaluate>
795: PerlAccessHandler Apache::lonacc
796: SetHandler perl-script
797: PerlHandler Apache::lonevaluate
798: ErrorDocument 403 /adm/login
799: ErrorDocument 500 /adm/errorhandler
800: </Location>
801:
802: <Location /adm/preferences>
803: PerlAccessHandler Apache::lonacc
804: SetHandler perl-script
805: PerlHandler Apache::lonpreferences
806: ErrorDocument 403 /adm/login
807: ErrorDocument 500 /adm/errorhandler
808: </Location>
809:
810: <Location /adm/communicate>
811: PerlAccessHandler Apache::lonacc
812: SetHandler perl-script
813: PerlHandler Apache::loncommunicate
814: ErrorDocument 403 /adm/login
815: ErrorDocument 500 /adm/errorhandler
816: </Location>
817:
818: <Location /adm/searchcat>
819: PerlAccessHandler Apache::lonacc
820: SetHandler perl-script
821: PerlHandler Apache::lonsearchcat
1.28 www 822: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.108 albertel 823: PerlCleanupHandler Apache::lonnet::save_cache
1.1 harris41 824: ErrorDocument 403 /adm/login
1.20 www 825: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 826: ErrorDocument 500 /adm/errorhandler
827: </Location>
828:
829: <Location /adm/navmaps>
830: PerlAccessHandler Apache::lonacc
831: SetHandler perl-script
832: PerlHandler Apache::lonnavmaps
833: ErrorDocument 403 /adm/login
834: ErrorDocument 406 /adm/roles
835: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 836: </Location>
837:
838: <Location /adm/quickgrades>
839: PerlAccessHandler Apache::lonacc
840: SetHandler perl-script
841: PerlHandler Apache::lonquickgrades
842: ErrorDocument 403 /adm/login
843: ErrorDocument 406 /adm/roles
844: ErrorDocument 500 /adm/errorhandler
1.1 harris41 845: </Location>
846:
847: <Location /adm/groupsort>
848: PerlAccessHandler Apache::lonacc
849: SetHandler perl-script
850: PerlHandler Apache::groupsort
1.29 www 851: PerlCleanupHandler Apache::groupsort::cleanup
1.108 albertel 852: PerlCleanupHandler Apache::lonnet::save_cache
1.1 harris41 853: ErrorDocument 403 /adm/login
854: ErrorDocument 500 /adm/errorhandler
855: </Location>
856:
857: <Location /adm/errorhandler>
858: SetHandler perl-script
859: PerlHandler Apache::lonerrorhandler
860: </Location>
861:
1.7 bowersj2 862: <LocationMatch "^/adm/help/.*\.hlp$">
1.114 albertel 863: PerlAccessHandler Apache::lonacc
1.7 bowersj2 864: SetHandler perl-script
865: PerlHandler Apache::lonhelp
866: </LocationMatch>
867:
1.90 raeburn 868: <LocationMatch "^/adm/helpmenu">
869: PerlAccessHandler Apache::lonacc
870: SetHandler perl-script
871: PerlHandler Apache::lonhelpmenu
872: </LocationMatch>
873:
874: <LocationMatch "^/adm/support">
875: PerlAccessHandler Apache::lonacc
876: SetHandler perl-script
877: PerlHandler Apache::lonsupportreq
878: </LocationMatch>
879:
1.100 raeburn 880: <LocationMatch "^/adm/helpdesk">
881: SetHandler perl-script
882: PerlHandler Apache::lonsupportreq
883: </LocationMatch>
884:
1.1 harris41 885: # ------------------------------------------------- Backdoor Adm Tests/Programs
886:
887: <Location /cgi-bin/loncron.pl>
1.37 www 888: AuthName "LON-CAPA Network Administration"
889: AuthType Basic
890: AuthUserFile /home/httpd/lonTabs/htpasswd
891: require user lonadm
892: </Location>
893:
894: <Location /cgi-bin/userstatus.pl>
1.1 harris41 895: AuthName "LON-CAPA Network Administration"
896: AuthType Basic
897: AuthUserFile /home/httpd/lonTabs/htpasswd
898: require user lonadm
899: </Location>
900:
901: <Location /cgi-bin/lonversions.pl>
902: AuthName "LON-CAPA Network Administration"
903: AuthType Basic
904: AuthUserFile /home/httpd/lonTabs/htpasswd
905: require user lonadm
906: </Location>
907:
908: <Location /cgi-bin/clusterstatus.pl>
909: AuthName "LON-CAPA Network Administration"
910: AuthType Basic
911: AuthUserFile /home/httpd/lonTabs/htpasswd
912: require user lonadm
913: </Location>
914:
915: <Location /cgi-bin/metadata_keywords.pl>
916: AuthName "LON-CAPA Network Administration"
917: AuthType Basic
918: AuthUserFile /home/httpd/lonTabs/htpasswd
919: require user lonadm
1.22 www 920: </Location>
921:
922: <Location /cgi-bin/metadata_harvest.pl>
923: AuthName "harvest"
924: AuthType Basic
925: AuthUserFile /home/httpd/lonTabs/htpasswd
926: require user reaper
1.62 www 927: </Location>
928:
929: <Location /cgi-bin/takeoffline.pl>
930: AuthName "Offline"
931: AuthType Basic
932: AuthUserFile /home/httpd/lonTabs/htpasswd
933: require user offline
934: </Location>
935:
936: <Location /cgi-bin/takeonline.pl>
937: AuthName "Offline"
938: AuthType Basic
939: AuthUserFile /home/httpd/lonTabs/htpasswd
940: require user offline
1.1 harris41 941: </Location>
942:
943: <Location /adm/test>
944: AuthName "LON-CAPA Network Administration"
945: AuthType Basic
946: AuthUserFile /home/httpd/lonTabs/htpasswd
947: require user lonadm
948: SetHandler perl-script
949: PerlAccessHandler Apache::lonacc
950: PerlHandler Apache::lontest
951: </Location>
952:
953: # ------------------------------------------------------- Shutting down a child
954:
955: PerlChildExitHandler Apache::lonnet::goodbye
956:
957: #
958: # LON-CAPA Section (extensions to access.conf permission configuration)
959: #
960: # =========================================================== Directory Options
961:
962: # Start out with "no"
963:
964: <Directory />
965: Options None
966: AllowOverride None
967: </Directory>
968:
969: # Yes to symbolic links and server-side includes
970:
971: <Directory /home/httpd/html>
972: Options Includes FollowSymLinks
973: AllowOverride None
974: order allow,deny
975: allow from all
976: </Directory>
977:
978: # If it is in cgi-bin, then it can be executed as a CGI script.
979:
980: <Directory /home/httpd/cgi-bin>
981: AllowOverride None
982: Options ExecCGI
983: </Directory>
984:
985: # ============================================================= Access Handlers
986:
987: # ------------------------------------------------- Allow server-status reports
988: <Location /server-status>
989: SetHandler server-status
990: AuthName "LON-CAPA Network Administration"
991: AuthType Basic
992: AuthUserFile /home/httpd/lonTabs/htpasswd
993: require user lonadm
994: </Location>
995:
996: # ------------------------ Allow LON-CAPA "low-level" connection status reports
997: <Location /lon-status>
998: AuthName "LON-CAPA Network Administration"
999: AuthType Basic
1000: AuthUserFile /home/httpd/lonTabs/htpasswd
1001: require user lonadm
1002: </Location>
1003:
1004: # ------------------- Allow access to local system documentation from localhost
1005: Alias /doc /usr/doc
1006: <Directory /usr/doc>
1007: order deny,allow
1008: deny from all
1009: allow from localhost
1010: Options Indexes FollowSymLinks
1011: </Directory>
1012:
1013: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1014: # ====================================== Internal Settings / Perl Configuration
1015:
1.59 www 1016: PerlSetVar lonVersion '<!-- VERSION -->'
1.1 harris41 1017: PerlSetVar lonIDsDir /home/httpd/lonIDs
1018: PerlSetVar lonTabDir /home/httpd/lonTabs
1019: PerlSetVar lonUsersDir /home/httpd/lonUsers
1020: PerlSetVar lonIconsURL /adm/lonIcons
1021: PerlSetVar londPort 5663
1022: PerlSetVar lonSysEMail korte@lite.msu.edu
1023: PerlSetVar lonDaemons /home/httpd/perl
1024: PerlSetVar lonSockDir /home/httpd/sockets
1025: PerlSetVar lonDocRoot /home/httpd/html
1.98 albertel 1026: PerlSetVar lonPrtDir /home/httpd/prtspool
1.1 harris41 1027: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.103 albertel 1028: 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&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/([\d\.]+):9999:84
1.105 albertel 1029: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1.43 albertel 1030: PerlSetVar lonScansDir /home/httpd/scantron
1031: PerlSetVar lonScriptTimeout 10
1.70 www 1032: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1033: PerlSetVar FAQHost http://help.lon-capa.org/
1.2 harris41 1034: # -----------------------------------------------------------------------------
1035: # NOTE: lonSqlAccess key is the password for the MySQL user
1036: # www@localhost. This value must always be "localhostkey".
1037: # The only security risk occurs when somebody logs in as 'www' on your system
1038: # (in which case you have much bigger problems than whether or not they
1039: # can access the non-authoritative loncapa database on your machine).
1040:
1041: PerlSetVar lonSqlAccess localhostkey
1042:
1043: # -----------------------------------------------------------------------------
1.36 albertel 1044: # lonttpdPort is the port used by the lightweight graphics httpd server
1045: # not the main Apache server
1.96 albertel 1046: PerlSetVar lonhttpdPort 8080
1.36 albertel 1047:
1.2 harris41 1048:
1.86 foxr 1049: #----------------------------------------------------------------------------
1050: #
1.79 foxr 1051: # Parameters used by secure lond/lonc
1052:
1053: #
1054: # Secure lond/lonc require ssl certificate and private
1055: # key files to function correctly. The certificate
1056: # files need not be terribly secure, but the private key files
1057: # should be set up so that only www (the lonc/lond effective user)
1058: # can read them.
1059: #
1060: # The definition below is the full path to the directory that
1061: # contains the certificate and key files:
1.82 foxr 1062:
1.79 foxr 1063: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1064:
1065: #
1066: # Secure lond/lonc require two certificates and a private host key.
1067: # The certificates required are that of the lonCAPA certificate authority
1068: # and the certificate that authority issued to this host.
1069: # lonnetCertificateAuthority is the name of the file that contains the
1070: # lonCAPA certificate authority's certificate.
1071: # lonnetCertificate is the name of the file that contains the certificate
1072: # issued to the host by the certificate authority.
1073: # Both of these variables are names of files assumed to be in
1074: # lonCertificateDirectory:
1075:
1076: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1077: PerlSetVar lonnetCertificate lonhostcert.pem
1078:
1079: #
1080: # To generate the request for a certificate, and to negotiate the
1081: # initial ssl connection, the host requires a private key. This key
1082: # is created at lonCAPA install time. Did we mention above that it
1083: # should be set so that only www can read it? The variale below
1084: # is the name of the file relative to lonnetCertificateDirectory
1085: # that has the host's private key. Did we remember to tell you to
1086: # keep the permissions on that file set to rw------- (0600)?
1087: #
1088:
1089: PerlSetVar lonnetPrivateKey lonKey.pem
1090:
1091: # Did we mention that the file described above must have
1092: # permissions really locked down so that it can't be stolen?
1093:
1.86 foxr 1094: #-------------------------------------------------------------------------
1095:
1096: # Parameters that define where all the ssl stuff is that's needed
1097: # to generate certificate requests and, on a system that's a CA
1098: # the certificate authority.
1099: #
1100: # SSLProgram -> Path to the openssl command
1101: # SSLDirectory -> Directory containing ssl configuration files etc.
1102: # SSLCAConfig -> Name of the SSL config file for the certificate
1103: # Authority.
1.87 foxr 1104: # SSLCAFile -> Full path to the Certificate authority file
1105: # (on the cert manager system).
1106: # SSLEmail -> E-mail address of loncapa certificate manager.
1.86 foxr 1107: # The following are good for the loncapa redhat installs and
1108: # the loncapa certificate authority system:
1109: #
1110: PerlSetVar SSLProgram /usr/bin/openssl
1111: PerlSetVar SSLDirectory /usr/share/ssl
1112: PerlSetVar SSLCAConfig loncapaca
1.87 foxr 1113: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1.93 albertel 1114: PerlSetVar SSLEmail certificate@lon-capa.org
1.86 foxr 1115:
1116: #-------------------------------------------------------------------------
1117:
1.79 foxr 1118:
1119:
1.2 harris41 1120:
1.8 harris41 1121: # ====================================== Include machine-specific configuration
1.2 harris41 1122:
1123: Include conf/loncapa.conf
1.61 albertel 1124:
1125: # ================================================= Include local configuration
1126:
1127: Include conf/loncapa_apache_local*.conf
1.1 harris41 1128:
1129: # ================================================== Initiate mod_perl starting
1130:
1131: PerlRequire conf/startup.pl
1.47 albertel 1132: <IfDefine !MODPERL2>
1.1 harris41 1133: PerlFreshRestart On
1.47 albertel 1134: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>