Annotation of loncom/loncapa_apache.conf, revision 1.102
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.102 ! raeburn 4: ## $Id: loncapa_apache.conf,v 1.101 2004/12/10 14:57:47 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:
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/assignments>
748: PerlAccessHandler Apache::lonacc
749: SetHandler perl-script
750: PerlHandler Apache::lonassignments
751: ErrorDocument 403 /adm/login
752: ErrorDocument 406 /adm/roles
753: ErrorDocument 500 /adm/errorhandler
754: </Location>
755:
756: <Location /adm/communicate>
757: PerlAccessHandler Apache::lonacc
758: SetHandler perl-script
759: PerlHandler Apache::loncommunicate
760: ErrorDocument 403 /adm/login
761: ErrorDocument 500 /adm/errorhandler
762: </Location>
763:
764: <Location /adm/searchcat>
765: PerlAccessHandler Apache::lonacc
766: SetHandler perl-script
767: PerlHandler Apache::lonsearchcat
1.28 www 768: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1 harris41 769: ErrorDocument 403 /adm/login
1.20 www 770: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 771: ErrorDocument 500 /adm/errorhandler
772: </Location>
773:
774: <Location /adm/navmaps>
775: PerlAccessHandler Apache::lonacc
776: SetHandler perl-script
777: PerlHandler Apache::lonnavmaps
778: ErrorDocument 403 /adm/login
779: ErrorDocument 406 /adm/roles
780: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 781: </Location>
782:
783: <Location /adm/quickgrades>
784: PerlAccessHandler Apache::lonacc
785: SetHandler perl-script
786: PerlHandler Apache::lonquickgrades
787: ErrorDocument 403 /adm/login
788: ErrorDocument 406 /adm/roles
789: ErrorDocument 500 /adm/errorhandler
1.1 harris41 790: </Location>
791:
792: <Location /adm/groupsort>
793: PerlAccessHandler Apache::lonacc
794: SetHandler perl-script
795: PerlHandler Apache::groupsort
1.29 www 796: PerlCleanupHandler Apache::groupsort::cleanup
1.1 harris41 797: ErrorDocument 403 /adm/login
798: ErrorDocument 500 /adm/errorhandler
799: </Location>
800:
801: <Location /adm/errorhandler>
802: SetHandler perl-script
803: PerlHandler Apache::lonerrorhandler
804: </Location>
805:
1.7 bowersj2 806: <LocationMatch "^/adm/help/.*\.hlp$">
1.68 www 807: PerlAccessHandler Apache::lonacc
1.7 bowersj2 808: SetHandler perl-script
809: PerlHandler Apache::lonhelp
810: </LocationMatch>
811:
1.90 raeburn 812: <LocationMatch "^/adm/helpmenu">
813: PerlAccessHandler Apache::lonacc
814: SetHandler perl-script
815: PerlHandler Apache::lonhelpmenu
816: </LocationMatch>
817:
818: <LocationMatch "^/adm/support">
819: PerlAccessHandler Apache::lonacc
820: SetHandler perl-script
821: PerlHandler Apache::lonsupportreq
822: </LocationMatch>
823:
1.100 raeburn 824: <LocationMatch "^/adm/helpdesk">
825: SetHandler perl-script
826: PerlHandler Apache::lonsupportreq
827: </LocationMatch>
828:
1.1 harris41 829: # ------------------------------------------------- Backdoor Adm Tests/Programs
830:
831: <Location /cgi-bin/loncron.pl>
1.37 www 832: AuthName "LON-CAPA Network Administration"
833: AuthType Basic
834: AuthUserFile /home/httpd/lonTabs/htpasswd
835: require user lonadm
836: </Location>
837:
838: <Location /cgi-bin/userstatus.pl>
1.1 harris41 839: AuthName "LON-CAPA Network Administration"
840: AuthType Basic
841: AuthUserFile /home/httpd/lonTabs/htpasswd
842: require user lonadm
843: </Location>
844:
845: <Location /cgi-bin/lonversions.pl>
846: AuthName "LON-CAPA Network Administration"
847: AuthType Basic
848: AuthUserFile /home/httpd/lonTabs/htpasswd
849: require user lonadm
850: </Location>
851:
852: <Location /cgi-bin/clusterstatus.pl>
853: AuthName "LON-CAPA Network Administration"
854: AuthType Basic
855: AuthUserFile /home/httpd/lonTabs/htpasswd
856: require user lonadm
857: </Location>
858:
859: <Location /cgi-bin/metadata_keywords.pl>
860: AuthName "LON-CAPA Network Administration"
861: AuthType Basic
862: AuthUserFile /home/httpd/lonTabs/htpasswd
863: require user lonadm
1.22 www 864: </Location>
865:
866: <Location /cgi-bin/metadata_harvest.pl>
867: AuthName "harvest"
868: AuthType Basic
869: AuthUserFile /home/httpd/lonTabs/htpasswd
870: require user reaper
1.62 www 871: </Location>
872:
873: <Location /cgi-bin/takeoffline.pl>
874: AuthName "Offline"
875: AuthType Basic
876: AuthUserFile /home/httpd/lonTabs/htpasswd
877: require user offline
878: </Location>
879:
880: <Location /cgi-bin/takeonline.pl>
881: AuthName "Offline"
882: AuthType Basic
883: AuthUserFile /home/httpd/lonTabs/htpasswd
884: require user offline
1.1 harris41 885: </Location>
886:
887: <Location /adm/test>
888: AuthName "LON-CAPA Network Administration"
889: AuthType Basic
890: AuthUserFile /home/httpd/lonTabs/htpasswd
891: require user lonadm
892: SetHandler perl-script
893: PerlAccessHandler Apache::lonacc
894: PerlHandler Apache::lontest
895: </Location>
896:
897: # ------------------------------------------------------- Shutting down a child
898:
899: PerlChildExitHandler Apache::lonnet::goodbye
900:
901: #
902: # LON-CAPA Section (extensions to access.conf permission configuration)
903: #
904: # =========================================================== Directory Options
905:
906: # Start out with "no"
907:
908: <Directory />
909: Options None
910: AllowOverride None
911: </Directory>
912:
913: # Yes to symbolic links and server-side includes
914:
915: <Directory /home/httpd/html>
916: Options Includes FollowSymLinks
917: AllowOverride None
918: order allow,deny
919: allow from all
920: </Directory>
921:
922: # If it is in cgi-bin, then it can be executed as a CGI script.
923:
924: <Directory /home/httpd/cgi-bin>
925: AllowOverride None
926: Options ExecCGI
927: </Directory>
928:
929: # ============================================================= Access Handlers
930:
931: # ------------------------------------------------- Allow server-status reports
932: <Location /server-status>
933: SetHandler server-status
934: AuthName "LON-CAPA Network Administration"
935: AuthType Basic
936: AuthUserFile /home/httpd/lonTabs/htpasswd
937: require user lonadm
938: </Location>
939:
940: # ------------------------ Allow LON-CAPA "low-level" connection status reports
941: <Location /lon-status>
942: AuthName "LON-CAPA Network Administration"
943: AuthType Basic
944: AuthUserFile /home/httpd/lonTabs/htpasswd
945: require user lonadm
946: </Location>
947:
948: # ------------------- Allow access to local system documentation from localhost
949: Alias /doc /usr/doc
950: <Directory /usr/doc>
951: order deny,allow
952: deny from all
953: allow from localhost
954: Options Indexes FollowSymLinks
955: </Directory>
956:
957: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
958: # ====================================== Internal Settings / Perl Configuration
959:
1.59 www 960: PerlSetVar lonVersion '<!-- VERSION -->'
1.1 harris41 961: PerlSetVar lonIDsDir /home/httpd/lonIDs
962: PerlSetVar lonTabDir /home/httpd/lonTabs
963: PerlSetVar lonUsersDir /home/httpd/lonUsers
964: PerlSetVar lonIconsURL /adm/lonIcons
965: PerlSetVar londPort 5663
966: PerlSetVar lonSysEMail korte@lite.msu.edu
967: PerlSetVar lonDaemons /home/httpd/perl
968: PerlSetVar lonSockDir /home/httpd/sockets
969: PerlSetVar lonDocRoot /home/httpd/html
1.98 albertel 970: PerlSetVar lonPrtDir /home/httpd/prtspool
1.1 harris41 971: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.97 www 972: 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 973: PerlSetVar lonTextBrowsers opera:windows\s+ce:lynx
1.43 albertel 974: PerlSetVar lonScansDir /home/httpd/scantron
975: PerlSetVar lonScriptTimeout 10
1.70 www 976: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
977: PerlSetVar FAQHost http://help.lon-capa.org/
1.2 harris41 978: # -----------------------------------------------------------------------------
979: # NOTE: lonSqlAccess key is the password for the MySQL user
980: # www@localhost. This value must always be "localhostkey".
981: # The only security risk occurs when somebody logs in as 'www' on your system
982: # (in which case you have much bigger problems than whether or not they
983: # can access the non-authoritative loncapa database on your machine).
984:
985: PerlSetVar lonSqlAccess localhostkey
986:
987: # -----------------------------------------------------------------------------
1.36 albertel 988: # lonttpdPort is the port used by the lightweight graphics httpd server
989: # not the main Apache server
1.96 albertel 990: PerlSetVar lonhttpdPort 8080
1.36 albertel 991:
1.2 harris41 992:
1.86 foxr 993: #----------------------------------------------------------------------------
994: #
1.79 foxr 995: # Parameters used by secure lond/lonc
996:
997: #
998: # Secure lond/lonc require ssl certificate and private
999: # key files to function correctly. The certificate
1000: # files need not be terribly secure, but the private key files
1001: # should be set up so that only www (the lonc/lond effective user)
1002: # can read them.
1003: #
1004: # The definition below is the full path to the directory that
1005: # contains the certificate and key files:
1.82 foxr 1006:
1.79 foxr 1007: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1008:
1009: #
1010: # Secure lond/lonc require two certificates and a private host key.
1011: # The certificates required are that of the lonCAPA certificate authority
1012: # and the certificate that authority issued to this host.
1013: # lonnetCertificateAuthority is the name of the file that contains the
1014: # lonCAPA certificate authority's certificate.
1015: # lonnetCertificate is the name of the file that contains the certificate
1016: # issued to the host by the certificate authority.
1017: # Both of these variables are names of files assumed to be in
1018: # lonCertificateDirectory:
1019:
1020: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1021: PerlSetVar lonnetCertificate lonhostcert.pem
1022:
1023: #
1024: # To generate the request for a certificate, and to negotiate the
1025: # initial ssl connection, the host requires a private key. This key
1026: # is created at lonCAPA install time. Did we mention above that it
1027: # should be set so that only www can read it? The variale below
1028: # is the name of the file relative to lonnetCertificateDirectory
1029: # that has the host's private key. Did we remember to tell you to
1030: # keep the permissions on that file set to rw------- (0600)?
1031: #
1032:
1033: PerlSetVar lonnetPrivateKey lonKey.pem
1034:
1035: # Did we mention that the file described above must have
1036: # permissions really locked down so that it can't be stolen?
1037:
1.86 foxr 1038: #-------------------------------------------------------------------------
1039:
1040: # Parameters that define where all the ssl stuff is that's needed
1041: # to generate certificate requests and, on a system that's a CA
1042: # the certificate authority.
1043: #
1044: # SSLProgram -> Path to the openssl command
1045: # SSLDirectory -> Directory containing ssl configuration files etc.
1046: # SSLCAConfig -> Name of the SSL config file for the certificate
1047: # Authority.
1.87 foxr 1048: # SSLCAFile -> Full path to the Certificate authority file
1049: # (on the cert manager system).
1050: # SSLEmail -> E-mail address of loncapa certificate manager.
1.86 foxr 1051: # The following are good for the loncapa redhat installs and
1052: # the loncapa certificate authority system:
1053: #
1054: PerlSetVar SSLProgram /usr/bin/openssl
1055: PerlSetVar SSLDirectory /usr/share/ssl
1056: PerlSetVar SSLCAConfig loncapaca
1.87 foxr 1057: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1.93 albertel 1058: PerlSetVar SSLEmail certificate@lon-capa.org
1.86 foxr 1059:
1060: #-------------------------------------------------------------------------
1061:
1.79 foxr 1062:
1063:
1.2 harris41 1064:
1.8 harris41 1065: # ====================================== Include machine-specific configuration
1.2 harris41 1066:
1067: Include conf/loncapa.conf
1.61 albertel 1068:
1069: # ================================================= Include local configuration
1070:
1071: Include conf/loncapa_apache_local*.conf
1.1 harris41 1072:
1073: # ================================================== Initiate mod_perl starting
1074:
1075: PerlRequire conf/startup.pl
1.47 albertel 1076: <IfDefine !MODPERL2>
1.1 harris41 1077: PerlFreshRestart On
1.47 albertel 1078: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>