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