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