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