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