Annotation of loncom/loncapa_apache.conf, revision 1.30
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.30 ! www 4: ## $Id: loncapa_apache.conf,v 1.29 2003/01/09 22:04:28 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
1.30 ! www 272: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1 harris41 273: ErrorDocument 406 /adm/roles
274: ErrorDocument 403 /adm/login
275: ErrorDocument 500 /adm/errorhandler
276: </Location>
277:
278: <Location /adm/ambiguous>
279: PerlAccessHandler Apache::lonacc
280: SetHandler perl-script
281: PerlHandler Apache::lonambiguous
1.30 ! www 282: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1 harris41 283: ErrorDocument 403 /adm/login
284: ErrorDocument 500 /adm/errorhandler
285: </Location>
286:
287: <Location /adm/email>
288: PerlAccessHandler Apache::lonacc
289: SetHandler perl-script
290: PerlHandler Apache::lonmsg
291: ErrorDocument 403 /adm/login
292: ErrorDocument 500 /adm/errorhandler
293: </Location>
294:
295: <Location /adm/parmset>
296: PerlAccessHandler Apache::lonacc
297: SetHandler perl-script
298: PerlHandler Apache::lonparmset
299: ErrorDocument 403 /adm/login
300: ErrorDocument 406 /adm/roles
301: ErrorDocument 500 /adm/errorhandler
302: </Location>
303:
304: <Location /adm/grades>
305: PerlAccessHandler Apache::lonacc
306: SetHandler perl-script
307: PerlHandler Apache::grades
308: ErrorDocument 403 /adm/login
309: ErrorDocument 406 /adm/roles
310: ErrorDocument 500 /adm/errorhandler
311: </Location>
312:
313: <Location /adm/createcourse>
314: PerlAccessHandler Apache::lonacc
315: SetHandler perl-script
316: PerlHandler Apache::loncreatecourse
317: ErrorDocument 403 /adm/login
318: ErrorDocument 406 /adm/roles
319: ErrorDocument 500 /adm/errorhandler
320: </Location>
321:
322: <Location /adm/createuser>
323: PerlAccessHandler Apache::lonacc
324: SetHandler perl-script
325: PerlHandler Apache::loncreateuser
326: ErrorDocument 403 /adm/login
327: ErrorDocument 406 /adm/roles
328: ErrorDocument 500 /adm/errorhandler
329: </Location>
330:
331: <Location /adm/publish>
332: PerlAccessHandler Apache::lonacc
333: SetHandler perl-script
334: PerlHandler Apache::lonpublisher
335: ErrorDocument 403 /adm/login
336: ErrorDocument 404 /adm/notfound.html
1.18 www 337: ErrorDocument 406 /adm/unauthorized
1.1 harris41 338: ErrorDocument 500 /adm/errorhandler
339: </Location>
340:
341: <LocationMatch "^/\~.*/$">
342: PerlAccessHandler Apache::loncacc
343: SetHandler perl-script
344: PerlHandler Apache::lonpubdir
345: ErrorDocument 403 /adm/login
346: ErrorDocument 404 /adm/notfound.html
1.18 www 347: ErrorDocument 406 /adm/unauthorized
1.1 harris41 348: ErrorDocument 500 /adm/errorhandler
349: </LocationMatch>
350:
351: <Location /adm/pubdir>
352: PerlAccessHandler Apache::lonacc
353: SetHandler perl-script
354: PerlHandler Apache::lonpubdir
355: ErrorDocument 403 /adm/login
356: ErrorDocument 404 /adm/notfound.html
1.18 www 357: ErrorDocument 406 /adm/unauthorized
358: ErrorDocument 500 /adm/errorhandler
359: </Location>
360:
361: <Location /adm/unauthorized>
362: PerlAccessHandler Apache::lonacc
363: SetHandler perl-script
364: PerlHandler Apache::lonunauthorized
365: ErrorDocument 403 /adm/login
366: ErrorDocument 404 /adm/notfound.html
1.1 harris41 367: ErrorDocument 500 /adm/errorhandler
368: </Location>
369:
370: <Location /adm/retrieve>
371: PerlAccessHandler Apache::lonacc
372: SetHandler perl-script
373: PerlHandler Apache::lonretrieve
374: ErrorDocument 403 /adm/login
375: ErrorDocument 404 /adm/notfound.html
1.18 www 376: ErrorDocument 406 /adm/unauthorized
1.1 harris41 377: ErrorDocument 500 /adm/errorhandler
378: </Location>
379:
380: <Location /adm/cfile>
381: PerlAccessHandler Apache::lonacc
382: SetHandler perl-script
383: PerlHandler Apache::loncfile
384: ErrorDocument 403 /adm/login
385: ErrorDocument 404 /adm/notfound.html
1.18 www 386: ErrorDocument 406 /adm/unauthorized
1.1 harris41 387: ErrorDocument 500 /adm/errorhandler
388: </Location>
389:
390: <Location /adm/diff>
391: PerlAccessHandler Apache::lonacc
392: SetHandler perl-script
393: PerlHandler Apache::londiff
394: ErrorDocument 403 /adm/login
395: ErrorDocument 404 /adm/notfound.html
1.18 www 396: ErrorDocument 406 /adm/unauthorized
1.1 harris41 397: ErrorDocument 500 /adm/errorhandler
398: </Location>
399:
400: <Location /adm/upload>
401: PerlAccessHandler Apache::lonacc
402: SetHandler perl-script
403: PerlHandler Apache::lonupload
404: ErrorDocument 403 /adm/login
405: ErrorDocument 404 /adm/notfound.html
1.18 www 406: ErrorDocument 406 /adm/unauthorized
1.1 harris41 407: ErrorDocument 500 /adm/errorhandler
408: </Location>
409:
410: <Location /adm/assesscalc>
411: PerlAccessHandler Apache::lonacc
412: SetHandler perl-script
413: PerlHandler Apache::lonspreadsheet
414: ErrorDocument 403 /adm/login
415: ErrorDocument 406 /adm/roles
1.20 www 416: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 417: ErrorDocument 500 /adm/errorhandler
418: </Location>
419:
420: <Location /adm/studentcalc>
421: PerlAccessHandler Apache::lonacc
422: SetHandler perl-script
423: PerlHandler Apache::lonspreadsheet
424: ErrorDocument 403 /adm/login
425: ErrorDocument 406 /adm/roles
1.20 www 426: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 427: ErrorDocument 500 /adm/errorhandler
428: </Location>
429:
430: <Location /adm/classcalc>
431: PerlAccessHandler Apache::lonacc
432: SetHandler perl-script
433: PerlHandler Apache::lonspreadsheet
434: ErrorDocument 403 /adm/login
435: ErrorDocument 406 /adm/roles
1.20 www 436: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 437: ErrorDocument 500 /adm/errorhandler
438: </Location>
439:
440: <Location /adm/dropadd>
441: PerlAccessHandler Apache::lonacc
442: SetHandler perl-script
443: PerlHandler Apache::londropadd
444: ErrorDocument 403 /adm/login
445: ErrorDocument 406 /adm/roles
446: ErrorDocument 500 /adm/errorhandler
447: </Location>
448:
449: <Location /adm/printout>
450: PerlAccessHandler Apache::lonacc
451: SetHandler perl-script
452: PerlHandler Apache::lonprintout
453: ErrorDocument 403 /adm/login
1.20 www 454: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 455: ErrorDocument 500 /adm/errorhandler
456: </Location>
457:
458: <Location /adm/feedback>
459: PerlAccessHandler Apache::lonacc
460: SetHandler perl-script
461: PerlHandler Apache::lonfeedback
1.10 www 462: ErrorDocument 403 /adm/login
463: ErrorDocument 500 /adm/errorhandler
464: </Location>
465:
466: <Location /adm/coursedocs>
467: PerlAccessHandler Apache::lonacc
468: SetHandler perl-script
469: PerlHandler Apache::londocs
470: ErrorDocument 403 /adm/login
471: ErrorDocument 500 /adm/errorhandler
472: </Location>
473:
474: <Location /adm/announcements>
475: PerlAccessHandler Apache::lonacc
476: SetHandler perl-script
477: PerlHandler Apache::lonannounce
478: ErrorDocument 403 /adm/login
479: ErrorDocument 500 /adm/errorhandler
480: </Location>
481:
482: <Location /adm/chat>
483: PerlAccessHandler Apache::lonacc
484: SetHandler perl-script
485: PerlHandler Apache::lonchat
1.13 www 486: ErrorDocument 500 /adm/errorhandler
487: </Location>
488:
489: <Location /adm/chatfetch>
490: PerlAccessHandler Apache::lonacc
491: SetHandler perl-script
492: PerlHandler Apache::lonchatfetch
1.20 www 493: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 494: ErrorDocument 500 /adm/errorhandler
495: </Location>
496:
497: <Location /adm/evaluate>
498: PerlAccessHandler Apache::lonacc
499: SetHandler perl-script
500: PerlHandler Apache::lonevaluate
501: ErrorDocument 403 /adm/login
502: ErrorDocument 500 /adm/errorhandler
503: </Location>
504:
505: <Location /adm/preferences>
506: PerlAccessHandler Apache::lonacc
507: SetHandler perl-script
508: PerlHandler Apache::lonpreferences
509: ErrorDocument 403 /adm/login
510: ErrorDocument 500 /adm/errorhandler
511: </Location>
512:
513: <Location /adm/assignments>
514: PerlAccessHandler Apache::lonacc
515: SetHandler perl-script
516: PerlHandler Apache::lonassignments
517: ErrorDocument 403 /adm/login
518: ErrorDocument 406 /adm/roles
519: ErrorDocument 500 /adm/errorhandler
520: </Location>
521:
522: <Location /adm/communicate>
523: PerlAccessHandler Apache::lonacc
524: SetHandler perl-script
525: PerlHandler Apache::loncommunicate
526: ErrorDocument 403 /adm/login
527: ErrorDocument 500 /adm/errorhandler
528: </Location>
529:
530: <Location /adm/searchcat>
531: PerlAccessHandler Apache::lonacc
532: SetHandler perl-script
533: PerlHandler Apache::lonsearchcat
1.28 www 534: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1 harris41 535: ErrorDocument 403 /adm/login
1.20 www 536: ErrorDocument 413 /adm/overloaded.txt
1.1 harris41 537: ErrorDocument 500 /adm/errorhandler
538: </Location>
539:
540: <Location /adm/navmaps>
541: PerlAccessHandler Apache::lonacc
542: SetHandler perl-script
543: PerlHandler Apache::lonnavmaps
1.30 ! www 544: PerlCleanupHandler Apache::lonnavmaps::cleanup
1.1 harris41 545: ErrorDocument 403 /adm/login
546: ErrorDocument 406 /adm/roles
547: ErrorDocument 500 /adm/errorhandler
1.26 bowersj2 548: </Location>
549:
550: <Location /adm/quickgrades>
551: PerlAccessHandler Apache::lonacc
552: SetHandler perl-script
553: PerlHandler Apache::lonquickgrades
554: ErrorDocument 403 /adm/login
555: ErrorDocument 406 /adm/roles
556: ErrorDocument 500 /adm/errorhandler
1.1 harris41 557: </Location>
558:
559: <Location /adm/groupsort>
560: PerlAccessHandler Apache::lonacc
561: SetHandler perl-script
562: PerlHandler Apache::groupsort
1.29 www 563: PerlCleanupHandler Apache::groupsort::cleanup
1.1 harris41 564: ErrorDocument 403 /adm/login
565: ErrorDocument 500 /adm/errorhandler
566: </Location>
567:
568: <Location /adm/errorhandler>
569: SetHandler perl-script
570: PerlHandler Apache::lonerrorhandler
571: </Location>
572:
1.7 bowersj2 573: <LocationMatch "^/adm/help/.*\.hlp$">
574: SetHandler perl-script
575: PerlHandler Apache::lonhelp
576: </LocationMatch>
577:
1.1 harris41 578: # ------------------------------------------------- Backdoor Adm Tests/Programs
579:
580: <Location /cgi-bin/loncron.pl>
581: AuthName "LON-CAPA Network Administration"
582: AuthType Basic
583: AuthUserFile /home/httpd/lonTabs/htpasswd
584: require user lonadm
585: </Location>
586:
587: <Location /cgi-bin/lonversions.pl>
588: AuthName "LON-CAPA Network Administration"
589: AuthType Basic
590: AuthUserFile /home/httpd/lonTabs/htpasswd
591: require user lonadm
592: </Location>
593:
594: <Location /cgi-bin/clusterstatus.pl>
595: AuthName "LON-CAPA Network Administration"
596: AuthType Basic
597: AuthUserFile /home/httpd/lonTabs/htpasswd
598: require user lonadm
599: </Location>
600:
601: <Location /cgi-bin/metadata_keywords.pl>
602: AuthName "LON-CAPA Network Administration"
603: AuthType Basic
604: AuthUserFile /home/httpd/lonTabs/htpasswd
605: require user lonadm
1.22 www 606: </Location>
607:
608: <Location /cgi-bin/metadata_harvest.pl>
609: AuthName "harvest"
610: AuthType Basic
611: AuthUserFile /home/httpd/lonTabs/htpasswd
612: require user reaper
1.1 harris41 613: </Location>
614:
615: <Location /adm/test>
616: AuthName "LON-CAPA Network Administration"
617: AuthType Basic
618: AuthUserFile /home/httpd/lonTabs/htpasswd
619: require user lonadm
620: SetHandler perl-script
621: PerlAccessHandler Apache::lonacc
622: PerlHandler Apache::lontest
623: </Location>
624:
625: # ------------------------------------------------------- Shutting down a child
626:
627: PerlChildExitHandler Apache::lonnet::goodbye
628:
629: #
630: # LON-CAPA Section (extensions to access.conf permission configuration)
631: #
632: # =========================================================== Directory Options
633:
634: # Start out with "no"
635:
636: <Directory />
637: Options None
638: AllowOverride None
639: </Directory>
640:
641: # Yes to symbolic links and server-side includes
642:
643: <Directory /home/httpd/html>
644: Options Includes FollowSymLinks
645: AllowOverride None
646: order allow,deny
647: allow from all
648: </Directory>
649:
650: # If it is in cgi-bin, then it can be executed as a CGI script.
651:
652: <Directory /home/httpd/cgi-bin>
653: AllowOverride None
654: Options ExecCGI
655: </Directory>
656:
657: # ============================================================= Access Handlers
658:
659: # ------------------------------------------------- Allow server-status reports
660: <Location /server-status>
661: SetHandler server-status
662: AuthName "LON-CAPA Network Administration"
663: AuthType Basic
664: AuthUserFile /home/httpd/lonTabs/htpasswd
665: require user lonadm
666: </Location>
667:
668: # ------------------------ Allow LON-CAPA "low-level" connection status reports
669: <Location /lon-status>
670: AuthName "LON-CAPA Network Administration"
671: AuthType Basic
672: AuthUserFile /home/httpd/lonTabs/htpasswd
673: require user lonadm
674: </Location>
675:
676: # ------------------- Allow access to local system documentation from localhost
677: Alias /doc /usr/doc
678: <Directory /usr/doc>
679: order deny,allow
680: deny from all
681: allow from localhost
682: Options Indexes FollowSymLinks
683: </Directory>
684:
685: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
686: # ====================================== Internal Settings / Perl Configuration
687:
688: PerlSetVar lonIDsDir /home/httpd/lonIDs
689: PerlSetVar lonTabDir /home/httpd/lonTabs
690: PerlSetVar lonUsersDir /home/httpd/lonUsers
691: PerlSetVar lonIconsURL /adm/lonIcons
692: PerlSetVar londPort 5663
693: PerlSetVar lonSysEMail korte@lite.msu.edu
694: PerlSetVar lonDaemons /home/httpd/perl
695: PerlSetVar lonSockDir /home/httpd/sockets
696: PerlSetVar lonDocRoot /home/httpd/html
697: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.25 albertel 698: 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 699:
700: # -----------------------------------------------------------------------------
701: # NOTE: lonSqlAccess key is the password for the MySQL user
702: # www@localhost. This value must always be "localhostkey".
703: # The only security risk occurs when somebody logs in as 'www' on your system
704: # (in which case you have much bigger problems than whether or not they
705: # can access the non-authoritative loncapa database on your machine).
706:
707: PerlSetVar lonSqlAccess localhostkey
708:
709: # -----------------------------------------------------------------------------
710:
711:
1.8 harris41 712: # ====================================== Include machine-specific configuration
1.2 harris41 713:
714: Include conf/loncapa.conf
1.1 harris41 715:
716: # ================================================== Initiate mod_perl starting
717:
718: PerlRequire conf/startup.pl
719: PerlFreshRestart On
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>