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