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