Annotation of loncom/loncapa_apache.conf, revision 1.105
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.105 ! albertel 4: ## $Id: loncapa_apache.conf,v 1.104 2005/02/17 04:48:12 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:
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:
539: <Location /adm/unauthorized>
540: PerlAccessHandler Apache::lonacc
541: SetHandler perl-script
542: PerlHandler Apache::lonunauthorized
543: ErrorDocument 403 /adm/login
544: ErrorDocument 404 /adm/notfound.html
1.1 harris41 545: ErrorDocument 500 /adm/errorhandler
546: </Location>
547:
548: <Location /adm/retrieve>
549: PerlAccessHandler Apache::lonacc
550: SetHandler perl-script
551: PerlHandler Apache::lonretrieve
552: ErrorDocument 403 /adm/login
553: ErrorDocument 404 /adm/notfound.html
1.18 www 554: ErrorDocument 406 /adm/unauthorized
1.1 harris41 555: ErrorDocument 500 /adm/errorhandler
556: </Location>
557:
558: <Location /adm/cfile>
559: PerlAccessHandler Apache::lonacc
560: SetHandler perl-script
561: PerlHandler Apache::loncfile
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/diff>
569: PerlAccessHandler Apache::lonacc
570: SetHandler perl-script
571: PerlHandler Apache::londiff
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/upload>
579: PerlAccessHandler Apache::lonacc
580: SetHandler perl-script
581: PerlHandler Apache::lonupload
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
1.72 raeburn 586: </Location>
587:
1.73 raeburn 588: <Location /adm/imsimport>
589: PerlAccessHandler Apache::lonacc
590: SetHandler perl-script
591: PerlHandler Apache::imsimport
592: ErrorDocument 403 /adm/login
593: ErrorDocument 404 /adm/notfound.html
594: ErrorDocument 406 /adm/unauthorized
595: ErrorDocument 500 /adm/errorhandler
596: </Location>
597:
1.72 raeburn 598: <Location /adm/testbank>
599: PerlAccessHandler Apache::lonacc
600: SetHandler perl-script
601: PerlHandler Apache::testbankimport
602: ErrorDocument 403 /adm/login
603: ErrorDocument 404 /adm/notfound.html
604: ErrorDocument 406 /adm/unauthorized
605: ErrorDocument 500 /adm/errorhandler
1.1 harris41 606: </Location>
607:
608: <Location /adm/assesscalc>
609: PerlAccessHandler Apache::lonacc
610: SetHandler perl-script
611: PerlHandler Apache::lonspreadsheet
612: ErrorDocument 403 /adm/login
613: ErrorDocument 406 /adm/roles
1.20 www 614: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 615: ErrorDocument 500 /adm/errorhandler
616: </Location>
617:
618: <Location /adm/studentcalc>
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/classcalc>
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/dropadd>
639: PerlAccessHandler Apache::lonacc
640: SetHandler perl-script
641: PerlHandler Apache::londropadd
1.44 www 642: ErrorDocument 403 /adm/login
643: ErrorDocument 406 /adm/roles
644: ErrorDocument 500 /adm/errorhandler
1.65 raeburn 645: </Location>
646:
1.92 matthew 647: <Location /adm/viewclasslist>
648: PerlAccessHandler Apache::lonacc
649: SetHandler perl-script
650: PerlHandler Apache::lonviewclasslist
651: ErrorDocument 403 /adm/login
652: ErrorDocument 406 /adm/roles
653: ErrorDocument 500 /adm/errorhandler
654: </Location>
655:
1.65 raeburn 656: <Location /adm/populate>
657: PerlAccessHandler Apache::lonacc
658: SetHandler perl-script
659: PerlHandler Apache::lonpopulate
660: ErrorDocument 403 /adm/login
661: ErrorDocument 406 /adm/roles
662: ErrorDocument 500 /adm/errorhandler
1.44 www 663: </Location>
664:
665: <Location /adm/managekeys>
666: PerlAccessHandler Apache::lonacc
667: SetHandler perl-script
668: PerlHandler Apache::lonmanagekeys
1.1 harris41 669: ErrorDocument 403 /adm/login
670: ErrorDocument 406 /adm/roles
671: ErrorDocument 500 /adm/errorhandler
672: </Location>
673:
674: <Location /adm/printout>
675: PerlAccessHandler Apache::lonacc
676: SetHandler perl-script
677: PerlHandler Apache::lonprintout
678: ErrorDocument 403 /adm/login
1.20 www 679: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 680: ErrorDocument 500 /adm/errorhandler
681: </Location>
682:
683: <Location /adm/feedback>
684: PerlAccessHandler Apache::lonacc
685: SetHandler perl-script
686: PerlHandler Apache::lonfeedback
1.10 www 687: ErrorDocument 403 /adm/login
688: ErrorDocument 500 /adm/errorhandler
689: </Location>
690:
691: <Location /adm/coursedocs>
692: PerlAccessHandler Apache::lonacc
693: SetHandler perl-script
694: PerlHandler Apache::londocs
1.61 albertel 695: PerlCleanupHandler Apache::londocs::untiehash
1.10 www 696: ErrorDocument 403 /adm/login
697: ErrorDocument 500 /adm/errorhandler
1.73 raeburn 698: </Location>
699:
700: <Location /adm/imsimportdocs>
701: PerlAccessHandler Apache::lonacc
702: SetHandler perl-script
703: PerlHandler Apache::imsimportdocs
704: ErrorDocument 403 /adm/login
705: ErrorDocument 500 /adm/errorhandler
1.10 www 706: </Location>
707:
708: <Location /adm/announcements>
709: PerlAccessHandler Apache::lonacc
710: SetHandler perl-script
711: PerlHandler Apache::lonannounce
712: ErrorDocument 403 /adm/login
713: ErrorDocument 500 /adm/errorhandler
714: </Location>
715:
716: <Location /adm/chat>
717: PerlAccessHandler Apache::lonacc
718: SetHandler perl-script
719: PerlHandler Apache::lonchat
1.13 www 720: ErrorDocument 500 /adm/errorhandler
721: </Location>
722:
723: <Location /adm/chatfetch>
724: PerlAccessHandler Apache::lonacc
725: SetHandler perl-script
726: PerlHandler Apache::lonchatfetch
1.20 www 727: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 728: ErrorDocument 500 /adm/errorhandler
729: </Location>
730:
731: <Location /adm/evaluate>
732: PerlAccessHandler Apache::lonacc
733: SetHandler perl-script
734: PerlHandler Apache::lonevaluate
735: ErrorDocument 403 /adm/login
736: ErrorDocument 500 /adm/errorhandler
737: </Location>
738:
739: <Location /adm/preferences>
740: PerlAccessHandler Apache::lonacc
741: SetHandler perl-script
742: PerlHandler Apache::lonpreferences
743: ErrorDocument 403 /adm/login
744: ErrorDocument 500 /adm/errorhandler
745: </Location>
746:
747: <Location /adm/communicate>
748: PerlAccessHandler Apache::lonacc
749: SetHandler perl-script
750: PerlHandler Apache::loncommunicate
751: ErrorDocument 403 /adm/login
752: ErrorDocument 500 /adm/errorhandler
753: </Location>
754:
755: <Location /adm/searchcat>
756: PerlAccessHandler Apache::lonacc
757: SetHandler perl-script
758: PerlHandler Apache::lonsearchcat
1.28 www 759: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1 harris41 760: ErrorDocument 403 /adm/login
1.20 www 761: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 762: ErrorDocument 500 /adm/errorhandler
763: </Location>
764:
765: <Location /adm/navmaps>
766: PerlAccessHandler Apache::lonacc
767: SetHandler perl-script
768: PerlHandler Apache::lonnavmaps
769: ErrorDocument 403 /adm/login
770: ErrorDocument 406 /adm/roles
771: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 772: </Location>
773:
774: <Location /adm/quickgrades>
775: PerlAccessHandler Apache::lonacc
776: SetHandler perl-script
777: PerlHandler Apache::lonquickgrades
778: ErrorDocument 403 /adm/login
779: ErrorDocument 406 /adm/roles
780: ErrorDocument 500 /adm/errorhandler
1.1 harris41 781: </Location>
782:
783: <Location /adm/groupsort>
784: PerlAccessHandler Apache::lonacc
785: SetHandler perl-script
786: PerlHandler Apache::groupsort
1.29 www 787: PerlCleanupHandler Apache::groupsort::cleanup
1.1 harris41 788: ErrorDocument 403 /adm/login
789: ErrorDocument 500 /adm/errorhandler
790: </Location>
791:
792: <Location /adm/errorhandler>
793: SetHandler perl-script
794: PerlHandler Apache::lonerrorhandler
795: </Location>
796:
1.7 bowersj2 797: <LocationMatch "^/adm/help/.*\.hlp$">
1.68 www 798: PerlAccessHandler Apache::lonacc
1.7 bowersj2 799: SetHandler perl-script
800: PerlHandler Apache::lonhelp
801: </LocationMatch>
802:
1.90 raeburn 803: <LocationMatch "^/adm/helpmenu">
804: PerlAccessHandler Apache::lonacc
805: SetHandler perl-script
806: PerlHandler Apache::lonhelpmenu
807: </LocationMatch>
808:
809: <LocationMatch "^/adm/support">
810: PerlAccessHandler Apache::lonacc
811: SetHandler perl-script
812: PerlHandler Apache::lonsupportreq
813: </LocationMatch>
814:
1.100 raeburn 815: <LocationMatch "^/adm/helpdesk">
816: SetHandler perl-script
817: PerlHandler Apache::lonsupportreq
818: </LocationMatch>
819:
1.1 harris41 820: # ------------------------------------------------- Backdoor Adm Tests/Programs
821:
822: <Location /cgi-bin/loncron.pl>
1.37 www 823: AuthName "LON-CAPA Network Administration"
824: AuthType Basic
825: AuthUserFile /home/httpd/lonTabs/htpasswd
826: require user lonadm
827: </Location>
828:
829: <Location /cgi-bin/userstatus.pl>
1.1 harris41 830: AuthName "LON-CAPA Network Administration"
831: AuthType Basic
832: AuthUserFile /home/httpd/lonTabs/htpasswd
833: require user lonadm
834: </Location>
835:
836: <Location /cgi-bin/lonversions.pl>
837: AuthName "LON-CAPA Network Administration"
838: AuthType Basic
839: AuthUserFile /home/httpd/lonTabs/htpasswd
840: require user lonadm
841: </Location>
842:
843: <Location /cgi-bin/clusterstatus.pl>
844: AuthName "LON-CAPA Network Administration"
845: AuthType Basic
846: AuthUserFile /home/httpd/lonTabs/htpasswd
847: require user lonadm
848: </Location>
849:
850: <Location /cgi-bin/metadata_keywords.pl>
851: AuthName "LON-CAPA Network Administration"
852: AuthType Basic
853: AuthUserFile /home/httpd/lonTabs/htpasswd
854: require user lonadm
1.22 www 855: </Location>
856:
857: <Location /cgi-bin/metadata_harvest.pl>
858: AuthName "harvest"
859: AuthType Basic
860: AuthUserFile /home/httpd/lonTabs/htpasswd
861: require user reaper
1.62 www 862: </Location>
863:
864: <Location /cgi-bin/takeoffline.pl>
865: AuthName "Offline"
866: AuthType Basic
867: AuthUserFile /home/httpd/lonTabs/htpasswd
868: require user offline
869: </Location>
870:
871: <Location /cgi-bin/takeonline.pl>
872: AuthName "Offline"
873: AuthType Basic
874: AuthUserFile /home/httpd/lonTabs/htpasswd
875: require user offline
1.1 harris41 876: </Location>
877:
878: <Location /adm/test>
879: AuthName "LON-CAPA Network Administration"
880: AuthType Basic
881: AuthUserFile /home/httpd/lonTabs/htpasswd
882: require user lonadm
883: SetHandler perl-script
884: PerlAccessHandler Apache::lonacc
885: PerlHandler Apache::lontest
886: </Location>
887:
888: # ------------------------------------------------------- Shutting down a child
889:
890: PerlChildExitHandler Apache::lonnet::goodbye
891:
892: #
893: # LON-CAPA Section (extensions to access.conf permission configuration)
894: #
895: # =========================================================== Directory Options
896:
897: # Start out with "no"
898:
899: <Directory />
900: Options None
901: AllowOverride None
902: </Directory>
903:
904: # Yes to symbolic links and server-side includes
905:
906: <Directory /home/httpd/html>
907: Options Includes FollowSymLinks
908: AllowOverride None
909: order allow,deny
910: allow from all
911: </Directory>
912:
913: # If it is in cgi-bin, then it can be executed as a CGI script.
914:
915: <Directory /home/httpd/cgi-bin>
916: AllowOverride None
917: Options ExecCGI
918: </Directory>
919:
920: # ============================================================= Access Handlers
921:
922: # ------------------------------------------------- Allow server-status reports
923: <Location /server-status>
924: SetHandler server-status
925: AuthName "LON-CAPA Network Administration"
926: AuthType Basic
927: AuthUserFile /home/httpd/lonTabs/htpasswd
928: require user lonadm
929: </Location>
930:
931: # ------------------------ Allow LON-CAPA "low-level" connection status reports
932: <Location /lon-status>
933: AuthName "LON-CAPA Network Administration"
934: AuthType Basic
935: AuthUserFile /home/httpd/lonTabs/htpasswd
936: require user lonadm
937: </Location>
938:
939: # ------------------- Allow access to local system documentation from localhost
940: Alias /doc /usr/doc
941: <Directory /usr/doc>
942: order deny,allow
943: deny from all
944: allow from localhost
945: Options Indexes FollowSymLinks
946: </Directory>
947:
948: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
949: # ====================================== Internal Settings / Perl Configuration
950:
1.59 www 951: PerlSetVar lonVersion '<!-- VERSION -->'
1.1 harris41 952: PerlSetVar lonIDsDir /home/httpd/lonIDs
953: PerlSetVar lonTabDir /home/httpd/lonTabs
954: PerlSetVar lonUsersDir /home/httpd/lonUsers
955: PerlSetVar lonIconsURL /adm/lonIcons
956: PerlSetVar londPort 5663
957: PerlSetVar lonSysEMail korte@lite.msu.edu
958: PerlSetVar lonDaemons /home/httpd/perl
959: PerlSetVar lonSockDir /home/httpd/sockets
960: PerlSetVar lonDocRoot /home/httpd/html
1.98 albertel 961: PerlSetVar lonPrtDir /home/httpd/prtspool
1.1 harris41 962: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.103 albertel 963: 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 964: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1.43 albertel 965: PerlSetVar lonScansDir /home/httpd/scantron
966: PerlSetVar lonScriptTimeout 10
1.70 www 967: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
968: PerlSetVar FAQHost http://help.lon-capa.org/
1.2 harris41 969: # -----------------------------------------------------------------------------
970: # NOTE: lonSqlAccess key is the password for the MySQL user
971: # www@localhost. This value must always be "localhostkey".
972: # The only security risk occurs when somebody logs in as 'www' on your system
973: # (in which case you have much bigger problems than whether or not they
974: # can access the non-authoritative loncapa database on your machine).
975:
976: PerlSetVar lonSqlAccess localhostkey
977:
978: # -----------------------------------------------------------------------------
1.36 albertel 979: # lonttpdPort is the port used by the lightweight graphics httpd server
980: # not the main Apache server
1.96 albertel 981: PerlSetVar lonhttpdPort 8080
1.36 albertel 982:
1.2 harris41 983:
1.86 foxr 984: #----------------------------------------------------------------------------
985: #
1.79 foxr 986: # Parameters used by secure lond/lonc
987:
988: #
989: # Secure lond/lonc require ssl certificate and private
990: # key files to function correctly. The certificate
991: # files need not be terribly secure, but the private key files
992: # should be set up so that only www (the lonc/lond effective user)
993: # can read them.
994: #
995: # The definition below is the full path to the directory that
996: # contains the certificate and key files:
1.82 foxr 997:
1.79 foxr 998: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
999:
1000: #
1001: # Secure lond/lonc require two certificates and a private host key.
1002: # The certificates required are that of the lonCAPA certificate authority
1003: # and the certificate that authority issued to this host.
1004: # lonnetCertificateAuthority is the name of the file that contains the
1005: # lonCAPA certificate authority's certificate.
1006: # lonnetCertificate is the name of the file that contains the certificate
1007: # issued to the host by the certificate authority.
1008: # Both of these variables are names of files assumed to be in
1009: # lonCertificateDirectory:
1010:
1011: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1012: PerlSetVar lonnetCertificate lonhostcert.pem
1013:
1014: #
1015: # To generate the request for a certificate, and to negotiate the
1016: # initial ssl connection, the host requires a private key. This key
1017: # is created at lonCAPA install time. Did we mention above that it
1018: # should be set so that only www can read it? The variale below
1019: # is the name of the file relative to lonnetCertificateDirectory
1020: # that has the host's private key. Did we remember to tell you to
1021: # keep the permissions on that file set to rw------- (0600)?
1022: #
1023:
1024: PerlSetVar lonnetPrivateKey lonKey.pem
1025:
1026: # Did we mention that the file described above must have
1027: # permissions really locked down so that it can't be stolen?
1028:
1.86 foxr 1029: #-------------------------------------------------------------------------
1030:
1031: # Parameters that define where all the ssl stuff is that's needed
1032: # to generate certificate requests and, on a system that's a CA
1033: # the certificate authority.
1034: #
1035: # SSLProgram -> Path to the openssl command
1036: # SSLDirectory -> Directory containing ssl configuration files etc.
1037: # SSLCAConfig -> Name of the SSL config file for the certificate
1038: # Authority.
1.87 foxr 1039: # SSLCAFile -> Full path to the Certificate authority file
1040: # (on the cert manager system).
1041: # SSLEmail -> E-mail address of loncapa certificate manager.
1.86 foxr 1042: # The following are good for the loncapa redhat installs and
1043: # the loncapa certificate authority system:
1044: #
1045: PerlSetVar SSLProgram /usr/bin/openssl
1046: PerlSetVar SSLDirectory /usr/share/ssl
1047: PerlSetVar SSLCAConfig loncapaca
1.87 foxr 1048: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1.93 albertel 1049: PerlSetVar SSLEmail certificate@lon-capa.org
1.86 foxr 1050:
1051: #-------------------------------------------------------------------------
1052:
1.79 foxr 1053:
1054:
1.2 harris41 1055:
1.8 harris41 1056: # ====================================== Include machine-specific configuration
1.2 harris41 1057:
1058: Include conf/loncapa.conf
1.61 albertel 1059:
1060: # ================================================= Include local configuration
1061:
1062: Include conf/loncapa_apache_local*.conf
1.1 harris41 1063:
1064: # ================================================== Initiate mod_perl starting
1065:
1066: PerlRequire conf/startup.pl
1.47 albertel 1067: <IfDefine !MODPERL2>
1.1 harris41 1068: PerlFreshRestart On
1.47 albertel 1069: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>