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