Annotation of loncom/loncapa_apache.conf, revision 1.65.2.1
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.65.2.1! albertel 4: ## $Id: loncapa_apache.conf,v 1.65 2003/12/08 16:31:59 raeburn Exp $
1.1 harris41 5: ##
6:
7: #
8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
9: #
1.8 harris41 10: # ================================================================ DocumentRoot
1.1 harris41 11:
12: DocumentRoot "/home/httpd/html"
13:
14: # ======================================================================== User
15:
16: User www
17: Group www
18:
19: # ======================================================= Shared Object Modules
20:
1.52 albertel 21: LoadModule perl_module modules/libperl.so
1.47 albertel 22: <IfDefine !MODPERL2>
1.1 harris41 23: AddModule mod_perl.c
1.47 albertel 24: </IfDefine>
1.1 harris41 25:
1.63 albertel 26: <IfDefine MODPERL2>
27: PerlSetVar MODPERL2 1
28: </IfDefine>
1.1 harris41 29: # =============================================================== Miscellaneous
30:
31: ServerAdmin korte@lite.msu.edu
32: ExtendedStatus On
33: #
34: # LON-CAPA Section (extensions to srm.conf name space servicing)
35: #
36: # ===================================================================== Aliases
37:
38: Alias /prtspool/ /home/httpd/prtspool/
1.8 harris41 39: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.1 harris41 40:
41: # ================================================================= Directories
42:
43: # ------------------------------------------------------------- Access Handlers
44:
1.12 www 45: PerlTransHandler Apache::lontrans
1.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
227: ErrorDocument 403 /adm/login
228: ErrorDocument 500 /adm/errorhandler
229: </LocationMatch>
230:
231: # -------------------------------------------------------------- Admin Programs
1.24 albertel 232:
233: <Location /adm/randomlabel.png>
234: PerlAccessHandler Apache::lonacc
235: SetHandler perl-script
236: PerlHandler Apache::randomlylabel
237: ErrorDocument 403 /adm/login
238: ErrorDocument 500 /adm/errorhandler
239: </Location>
1.1 harris41 240:
241: <Location /adm/statistics>
242: PerlAccessHandler Apache::lonacc
243: SetHandler perl-script
244: PerlHandler Apache::lonstatistics
245: ErrorDocument 403 /adm/login
1.20 www 246: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 247: ErrorDocument 500 /adm/errorhandler
248: </Location>
249:
250: <Location /adm/roles>
251: PerlAccessHandler Apache::lonacc
252: SetHandler perl-script
253: PerlHandler Apache::lonroles
1.33 www 254: ErrorDocument 403 /adm/login
255: ErrorDocument 500 /adm/errorhandler
256: </Location>
257:
258: <Location /adm/menu>
259: PerlAccessHandler Apache::lonacc
260: SetHandler perl-script
261: PerlHandler Apache::lonmenu
1.42 www 262: ErrorDocument 403 /adm/login
263: ErrorDocument 500 /adm/errorhandler
264: </Location>
265:
266: <Location /adm/remote>
267: PerlAccessHandler Apache::lonacc
268: SetHandler perl-script
269: PerlHandler Apache::lonremote
1.27 www 270: ErrorDocument 403 /adm/login
271: ErrorDocument 500 /adm/errorhandler
272: </Location>
273:
274: <Location /adm/pickstudent>
275: PerlAccessHandler Apache::lonacc
276: SetHandler perl-script
277: PerlHandler Apache::lonpickstudent
1.40 www 278: ErrorDocument 403 /adm/login
279: ErrorDocument 500 /adm/errorhandler
280: </Location>
281:
282: <Location /adm/pickcourse>
283: PerlAccessHandler Apache::lonacc
284: SetHandler perl-script
285: PerlHandler Apache::lonpickcourse
1.1 harris41 286: ErrorDocument 403 /adm/login
287: ErrorDocument 500 /adm/errorhandler
288: </Location>
289:
290: <Location /adm/login>
291: SetHandler perl-script
292: PerlHandler Apache::lonlogin
293: </Location>
294:
295: <Location /adm/logout>
296: PerlAccessHandler Apache::lonacc
297: SetHandler perl-script
298: PerlHandler Apache::lonlogout
299: ErrorDocument 403 /adm/login
300: </Location>
301:
302: <Location /adm/authenticate>
303: SetHandler perl-script
304: PerlHandler Apache::lonauth
305: </Location>
306:
307: <Location /adm/annotations>
308: PerlAccessHandler Apache::lonacc
309: SetHandler perl-script
310: PerlHandler Apache::admannotations
311: ErrorDocument 403 /adm/login
312: ErrorDocument 500 /adm/errorhandler
313: </Location>
314:
315: <Location /adm/bookmarks>
316: PerlAccessHandler Apache::lonacc
317: SetHandler perl-script
318: PerlHandler Apache::admbookmarks
319: ErrorDocument 403 /adm/login
320: ErrorDocument 500 /adm/errorhandler
321: </Location>
322:
323: <Location /adm/flip>
324: PerlAccessHandler Apache::lonacc
325: SetHandler perl-script
326: PerlHandler Apache::lonpageflip
1.30 www 327: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1 harris41 328: ErrorDocument 406 /adm/roles
329: ErrorDocument 403 /adm/login
330: ErrorDocument 500 /adm/errorhandler
331: </Location>
332:
333: <Location /adm/ambiguous>
334: PerlAccessHandler Apache::lonacc
335: SetHandler perl-script
336: PerlHandler Apache::lonambiguous
1.30 www 337: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1 harris41 338: ErrorDocument 403 /adm/login
339: ErrorDocument 500 /adm/errorhandler
340: </Location>
341:
342: <Location /adm/email>
343: PerlAccessHandler Apache::lonacc
344: SetHandler perl-script
345: PerlHandler Apache::lonmsg
346: ErrorDocument 403 /adm/login
347: ErrorDocument 500 /adm/errorhandler
348: </Location>
349:
350: <Location /adm/parmset>
351: PerlAccessHandler Apache::lonacc
352: SetHandler perl-script
353: PerlHandler Apache::lonparmset
1.31 bowersj2 354: ErrorDocument 403 /adm/login
355: ErrorDocument 406 /adm/roles
356: ErrorDocument 500 /adm/errorhandler
357: </Location>
358:
359: <Location /adm/wizard>
360: PerlAccessHandler Apache::lonacc
361: SetHandler perl-script
362: PerlHandler Apache::lonwizard
1.1 harris41 363: ErrorDocument 403 /adm/login
364: ErrorDocument 406 /adm/roles
365: ErrorDocument 500 /adm/errorhandler
366: </Location>
367:
368: <Location /adm/grades>
369: PerlAccessHandler Apache::lonacc
370: SetHandler perl-script
371: PerlHandler Apache::grades
372: ErrorDocument 403 /adm/login
373: ErrorDocument 406 /adm/roles
374: ErrorDocument 500 /adm/errorhandler
375: </Location>
376:
377: <Location /adm/createcourse>
378: PerlAccessHandler Apache::lonacc
379: SetHandler perl-script
380: PerlHandler Apache::loncreatecourse
381: ErrorDocument 403 /adm/login
382: ErrorDocument 406 /adm/roles
383: ErrorDocument 500 /adm/errorhandler
1.65.2.1! albertel 384: </Location>
! 385:
! 386: <Location /adm/modifycourse>
! 387: PerlAccessHandler Apache::lonacc
! 388: SetHandler perl-script
! 389: PerlHandler Apache::lonmodifycourse
! 390: ErrorDocument 403 /adm/login
! 391: ErrorDocument 406 /adm/roles
! 392: ErrorDocument 500 /adm/errorhandler
1.1 harris41 393: </Location>
394:
395: <Location /adm/createuser>
396: PerlAccessHandler Apache::lonacc
397: SetHandler perl-script
398: PerlHandler Apache::loncreateuser
399: ErrorDocument 403 /adm/login
400: ErrorDocument 406 /adm/roles
401: ErrorDocument 500 /adm/errorhandler
402: </Location>
403:
404: <Location /adm/publish>
405: PerlAccessHandler Apache::lonacc
406: SetHandler perl-script
407: PerlHandler Apache::lonpublisher
408: ErrorDocument 403 /adm/login
409: ErrorDocument 404 /adm/notfound.html
1.18 www 410: ErrorDocument 406 /adm/unauthorized
1.1 harris41 411: ErrorDocument 500 /adm/errorhandler
412: </Location>
413:
1.64 albertel 414: <LocationMatch "^/+\~.*/$">
1.1 harris41 415: PerlAccessHandler Apache::loncacc
416: SetHandler perl-script
417: PerlHandler Apache::lonpubdir
418: ErrorDocument 403 /adm/login
419: ErrorDocument 404 /adm/notfound.html
1.18 www 420: ErrorDocument 406 /adm/unauthorized
1.1 harris41 421: ErrorDocument 500 /adm/errorhandler
422: </LocationMatch>
423:
424: <Location /adm/pubdir>
425: PerlAccessHandler Apache::lonacc
426: SetHandler perl-script
427: PerlHandler Apache::lonpubdir
428: ErrorDocument 403 /adm/login
429: ErrorDocument 404 /adm/notfound.html
1.18 www 430: ErrorDocument 406 /adm/unauthorized
431: ErrorDocument 500 /adm/errorhandler
432: </Location>
433:
434: <Location /adm/unauthorized>
435: PerlAccessHandler Apache::lonacc
436: SetHandler perl-script
437: PerlHandler Apache::lonunauthorized
438: ErrorDocument 403 /adm/login
439: ErrorDocument 404 /adm/notfound.html
1.1 harris41 440: ErrorDocument 500 /adm/errorhandler
441: </Location>
442:
443: <Location /adm/retrieve>
444: PerlAccessHandler Apache::lonacc
445: SetHandler perl-script
446: PerlHandler Apache::lonretrieve
447: ErrorDocument 403 /adm/login
448: ErrorDocument 404 /adm/notfound.html
1.18 www 449: ErrorDocument 406 /adm/unauthorized
1.1 harris41 450: ErrorDocument 500 /adm/errorhandler
451: </Location>
452:
453: <Location /adm/cfile>
454: PerlAccessHandler Apache::lonacc
455: SetHandler perl-script
456: PerlHandler Apache::loncfile
457: ErrorDocument 403 /adm/login
458: ErrorDocument 404 /adm/notfound.html
1.18 www 459: ErrorDocument 406 /adm/unauthorized
1.1 harris41 460: ErrorDocument 500 /adm/errorhandler
461: </Location>
462:
463: <Location /adm/diff>
464: PerlAccessHandler Apache::lonacc
465: SetHandler perl-script
466: PerlHandler Apache::londiff
467: ErrorDocument 403 /adm/login
468: ErrorDocument 404 /adm/notfound.html
1.18 www 469: ErrorDocument 406 /adm/unauthorized
1.1 harris41 470: ErrorDocument 500 /adm/errorhandler
471: </Location>
472:
473: <Location /adm/upload>
474: PerlAccessHandler Apache::lonacc
475: SetHandler perl-script
476: PerlHandler Apache::lonupload
477: ErrorDocument 403 /adm/login
478: ErrorDocument 404 /adm/notfound.html
1.18 www 479: ErrorDocument 406 /adm/unauthorized
1.1 harris41 480: ErrorDocument 500 /adm/errorhandler
481: </Location>
482:
483: <Location /adm/assesscalc>
484: PerlAccessHandler Apache::lonacc
485: SetHandler perl-script
486: PerlHandler Apache::lonspreadsheet
487: ErrorDocument 403 /adm/login
488: ErrorDocument 406 /adm/roles
1.20 www 489: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 490: ErrorDocument 500 /adm/errorhandler
491: </Location>
492:
493: <Location /adm/studentcalc>
494: PerlAccessHandler Apache::lonacc
495: SetHandler perl-script
496: PerlHandler Apache::lonspreadsheet
497: ErrorDocument 403 /adm/login
498: ErrorDocument 406 /adm/roles
1.20 www 499: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 500: ErrorDocument 500 /adm/errorhandler
501: </Location>
502:
503: <Location /adm/classcalc>
504: PerlAccessHandler Apache::lonacc
505: SetHandler perl-script
506: PerlHandler Apache::lonspreadsheet
507: ErrorDocument 403 /adm/login
508: ErrorDocument 406 /adm/roles
1.20 www 509: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 510: ErrorDocument 500 /adm/errorhandler
511: </Location>
512:
513: <Location /adm/dropadd>
514: PerlAccessHandler Apache::lonacc
515: SetHandler perl-script
516: PerlHandler Apache::londropadd
1.44 www 517: ErrorDocument 403 /adm/login
518: ErrorDocument 406 /adm/roles
519: ErrorDocument 500 /adm/errorhandler
1.65 raeburn 520: </Location>
521:
522: <Location /adm/populate>
523: PerlAccessHandler Apache::lonacc
524: SetHandler perl-script
525: PerlHandler Apache::lonpopulate
526: ErrorDocument 403 /adm/login
527: ErrorDocument 406 /adm/roles
528: ErrorDocument 500 /adm/errorhandler
1.44 www 529: </Location>
530:
531: <Location /adm/managekeys>
532: PerlAccessHandler Apache::lonacc
533: SetHandler perl-script
534: PerlHandler Apache::lonmanagekeys
1.1 harris41 535: ErrorDocument 403 /adm/login
536: ErrorDocument 406 /adm/roles
537: ErrorDocument 500 /adm/errorhandler
538: </Location>
539:
540: <Location /adm/printout>
541: PerlAccessHandler Apache::lonacc
542: SetHandler perl-script
543: PerlHandler Apache::lonprintout
544: ErrorDocument 403 /adm/login
1.20 www 545: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 546: ErrorDocument 500 /adm/errorhandler
547: </Location>
548:
549: <Location /adm/feedback>
550: PerlAccessHandler Apache::lonacc
551: SetHandler perl-script
552: PerlHandler Apache::lonfeedback
1.10 www 553: ErrorDocument 403 /adm/login
554: ErrorDocument 500 /adm/errorhandler
555: </Location>
556:
557: <Location /adm/coursedocs>
558: PerlAccessHandler Apache::lonacc
559: SetHandler perl-script
560: PerlHandler Apache::londocs
1.61 albertel 561: PerlCleanupHandler Apache::londocs::untiehash
1.10 www 562: ErrorDocument 403 /adm/login
563: ErrorDocument 500 /adm/errorhandler
564: </Location>
565:
566: <Location /adm/announcements>
567: PerlAccessHandler Apache::lonacc
568: SetHandler perl-script
569: PerlHandler Apache::lonannounce
570: ErrorDocument 403 /adm/login
571: ErrorDocument 500 /adm/errorhandler
572: </Location>
573:
574: <Location /adm/chat>
575: PerlAccessHandler Apache::lonacc
576: SetHandler perl-script
577: PerlHandler Apache::lonchat
1.13 www 578: ErrorDocument 500 /adm/errorhandler
579: </Location>
580:
581: <Location /adm/chatfetch>
582: PerlAccessHandler Apache::lonacc
583: SetHandler perl-script
584: PerlHandler Apache::lonchatfetch
1.20 www 585: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 586: ErrorDocument 500 /adm/errorhandler
587: </Location>
588:
589: <Location /adm/evaluate>
590: PerlAccessHandler Apache::lonacc
591: SetHandler perl-script
592: PerlHandler Apache::lonevaluate
593: ErrorDocument 403 /adm/login
594: ErrorDocument 500 /adm/errorhandler
595: </Location>
596:
597: <Location /adm/preferences>
598: PerlAccessHandler Apache::lonacc
599: SetHandler perl-script
600: PerlHandler Apache::lonpreferences
601: ErrorDocument 403 /adm/login
602: ErrorDocument 500 /adm/errorhandler
603: </Location>
604:
605: <Location /adm/assignments>
606: PerlAccessHandler Apache::lonacc
607: SetHandler perl-script
608: PerlHandler Apache::lonassignments
609: ErrorDocument 403 /adm/login
610: ErrorDocument 406 /adm/roles
611: ErrorDocument 500 /adm/errorhandler
612: </Location>
613:
614: <Location /adm/communicate>
615: PerlAccessHandler Apache::lonacc
616: SetHandler perl-script
617: PerlHandler Apache::loncommunicate
618: ErrorDocument 403 /adm/login
619: ErrorDocument 500 /adm/errorhandler
620: </Location>
621:
622: <Location /adm/searchcat>
623: PerlAccessHandler Apache::lonacc
624: SetHandler perl-script
625: PerlHandler Apache::lonsearchcat
1.28 www 626: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1 harris41 627: ErrorDocument 403 /adm/login
1.20 www 628: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 629: ErrorDocument 500 /adm/errorhandler
630: </Location>
631:
632: <Location /adm/navmaps>
633: PerlAccessHandler Apache::lonacc
634: SetHandler perl-script
635: PerlHandler Apache::lonnavmaps
636: ErrorDocument 403 /adm/login
637: ErrorDocument 406 /adm/roles
638: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 639: </Location>
640:
641: <Location /adm/quickgrades>
642: PerlAccessHandler Apache::lonacc
643: SetHandler perl-script
644: PerlHandler Apache::lonquickgrades
645: ErrorDocument 403 /adm/login
646: ErrorDocument 406 /adm/roles
647: ErrorDocument 500 /adm/errorhandler
1.1 harris41 648: </Location>
649:
650: <Location /adm/groupsort>
651: PerlAccessHandler Apache::lonacc
652: SetHandler perl-script
653: PerlHandler Apache::groupsort
1.29 www 654: PerlCleanupHandler Apache::groupsort::cleanup
1.1 harris41 655: ErrorDocument 403 /adm/login
656: ErrorDocument 500 /adm/errorhandler
657: </Location>
658:
659: <Location /adm/errorhandler>
660: SetHandler perl-script
661: PerlHandler Apache::lonerrorhandler
662: </Location>
663:
1.7 bowersj2 664: <LocationMatch "^/adm/help/.*\.hlp$">
665: SetHandler perl-script
666: PerlHandler Apache::lonhelp
667: </LocationMatch>
668:
1.1 harris41 669: # ------------------------------------------------- Backdoor Adm Tests/Programs
670:
671: <Location /cgi-bin/loncron.pl>
1.37 www 672: AuthName "LON-CAPA Network Administration"
673: AuthType Basic
674: AuthUserFile /home/httpd/lonTabs/htpasswd
675: require user lonadm
676: </Location>
677:
678: <Location /cgi-bin/userstatus.pl>
1.1 harris41 679: AuthName "LON-CAPA Network Administration"
680: AuthType Basic
681: AuthUserFile /home/httpd/lonTabs/htpasswd
682: require user lonadm
683: </Location>
684:
685: <Location /cgi-bin/lonversions.pl>
686: AuthName "LON-CAPA Network Administration"
687: AuthType Basic
688: AuthUserFile /home/httpd/lonTabs/htpasswd
689: require user lonadm
690: </Location>
691:
692: <Location /cgi-bin/clusterstatus.pl>
693: AuthName "LON-CAPA Network Administration"
694: AuthType Basic
695: AuthUserFile /home/httpd/lonTabs/htpasswd
696: require user lonadm
697: </Location>
698:
699: <Location /cgi-bin/metadata_keywords.pl>
700: AuthName "LON-CAPA Network Administration"
701: AuthType Basic
702: AuthUserFile /home/httpd/lonTabs/htpasswd
703: require user lonadm
1.22 www 704: </Location>
705:
706: <Location /cgi-bin/metadata_harvest.pl>
707: AuthName "harvest"
708: AuthType Basic
709: AuthUserFile /home/httpd/lonTabs/htpasswd
710: require user reaper
1.62 www 711: </Location>
712:
713: <Location /cgi-bin/takeoffline.pl>
714: AuthName "Offline"
715: AuthType Basic
716: AuthUserFile /home/httpd/lonTabs/htpasswd
717: require user offline
718: </Location>
719:
720: <Location /cgi-bin/takeonline.pl>
721: AuthName "Offline"
722: AuthType Basic
723: AuthUserFile /home/httpd/lonTabs/htpasswd
724: require user offline
1.1 harris41 725: </Location>
726:
727: <Location /adm/test>
728: AuthName "LON-CAPA Network Administration"
729: AuthType Basic
730: AuthUserFile /home/httpd/lonTabs/htpasswd
731: require user lonadm
732: SetHandler perl-script
733: PerlAccessHandler Apache::lonacc
734: PerlHandler Apache::lontest
735: </Location>
736:
737: # ------------------------------------------------------- Shutting down a child
738:
739: PerlChildExitHandler Apache::lonnet::goodbye
740:
741: #
742: # LON-CAPA Section (extensions to access.conf permission configuration)
743: #
744: # =========================================================== Directory Options
745:
746: # Start out with "no"
747:
748: <Directory />
749: Options None
750: AllowOverride None
751: </Directory>
752:
753: # Yes to symbolic links and server-side includes
754:
755: <Directory /home/httpd/html>
756: Options Includes FollowSymLinks
757: AllowOverride None
758: order allow,deny
759: allow from all
760: </Directory>
761:
762: # If it is in cgi-bin, then it can be executed as a CGI script.
763:
764: <Directory /home/httpd/cgi-bin>
765: AllowOverride None
766: Options ExecCGI
767: </Directory>
768:
769: # ============================================================= Access Handlers
770:
771: # ------------------------------------------------- Allow server-status reports
772: <Location /server-status>
773: SetHandler server-status
774: AuthName "LON-CAPA Network Administration"
775: AuthType Basic
776: AuthUserFile /home/httpd/lonTabs/htpasswd
777: require user lonadm
778: </Location>
779:
780: # ------------------------ Allow LON-CAPA "low-level" connection status reports
781: <Location /lon-status>
782: AuthName "LON-CAPA Network Administration"
783: AuthType Basic
784: AuthUserFile /home/httpd/lonTabs/htpasswd
785: require user lonadm
786: </Location>
787:
788: # ------------------- Allow access to local system documentation from localhost
789: Alias /doc /usr/doc
790: <Directory /usr/doc>
791: order deny,allow
792: deny from all
793: allow from localhost
794: Options Indexes FollowSymLinks
795: </Directory>
796:
797: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
798: # ====================================== Internal Settings / Perl Configuration
799:
1.59 www 800: PerlSetVar lonVersion '<!-- VERSION -->'
1.1 harris41 801: PerlSetVar lonIDsDir /home/httpd/lonIDs
802: PerlSetVar lonTabDir /home/httpd/lonTabs
803: PerlSetVar lonUsersDir /home/httpd/lonUsers
804: PerlSetVar lonIconsURL /adm/lonIcons
805: PerlSetVar londPort 5663
806: PerlSetVar lonSysEMail korte@lite.msu.edu
807: PerlSetVar lonDaemons /home/httpd/perl
808: PerlSetVar lonSockDir /home/httpd/sockets
809: PerlSetVar lonDocRoot /home/httpd/html
810: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.25 albertel 811: 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 812: PerlSetVar lonTextBrowsers opera:windows\s+ce:lynx
1.43 albertel 813: PerlSetVar lonScansDir /home/httpd/scantron
814: PerlSetVar lonScriptTimeout 10
1.2 harris41 815: # -----------------------------------------------------------------------------
816: # NOTE: lonSqlAccess key is the password for the MySQL user
817: # www@localhost. This value must always be "localhostkey".
818: # The only security risk occurs when somebody logs in as 'www' on your system
819: # (in which case you have much bigger problems than whether or not they
820: # can access the non-authoritative loncapa database on your machine).
821:
822: PerlSetVar lonSqlAccess localhostkey
823:
824: # -----------------------------------------------------------------------------
1.36 albertel 825: # lonttpdPort is the port used by the lightweight graphics httpd server
826: # not the main Apache server
827: PerlSetVar lonhttpdPort 8080
828:
1.2 harris41 829:
830:
1.8 harris41 831: # ====================================== Include machine-specific configuration
1.2 harris41 832:
833: Include conf/loncapa.conf
1.61 albertel 834:
835: # ================================================= Include local configuration
836:
837: Include conf/loncapa_apache_local*.conf
1.1 harris41 838:
839: # ================================================== Initiate mod_perl starting
840:
841: PerlRequire conf/startup.pl
1.47 albertel 842: <IfDefine !MODPERL2>
1.1 harris41 843: PerlFreshRestart On
1.47 albertel 844: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>