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