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