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