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