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