Annotation of loncom/loncapa.conf, revision 1.4
1.1 harris41 1: ##
2: ## loncapa.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.4 ! harris41 4: ## $Id: loncapa.conf,v 1.3 2002/02/28 18:07:19 harris41 Exp $
1.1 harris41 5: ##
6: ## 1/11/2002 - Scott Harrison
7:
8: #
1.3 harris41 9: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
10: #
1.4 ! harris41 11: # ======================================================================== User
! 12:
! 13: DocumentRoot "/home/httpd/html"
! 14:
1.3 harris41 15: # ======================================================================== User
16:
17: User www
18: Group www
19:
20: # ======================================================= Shared Object Modules
21:
22: LoadModule perl_module modules/libperl.so
23: AddModule mod_perl.c
24:
25: # =============================================================== Miscellaneous
26:
27: ServerAdmin korte@lite.msu.edu
28: ExtendedStatus On
29:
30: #
1.1 harris41 31: # LON-CAPA Section (extensions to srm.conf name space servicing)
32: #
1.3 harris41 33: # ===================================================================== Aliases
34:
35: Alias /prtspool/ /home/httpd/prtspool/
36:
1.1 harris41 37: # ================================================================= Directories
38:
39: # ------------------------------------------------------------- Access Handlers
40:
41: <LocationMatch "^/res.*">
42: PerlAccessHandler Apache::lonacc
43: PerlHeaderParserHandler Apache::lonrep
44: ErrorDocument 403 /adm/login
45: ErrorDocument 404 /adm/notfound.html
46: ErrorDocument 406 /adm/roles
47: ErrorDocument 500 /adm/errorhandler
48: </LocationMatch>
49:
50: <LocationMatch "^/priv.*">
51: PerlAccessHandler Apache::loncacc
52: SetHandler perl-script
53: PerlHandler Apache::lonconstruct
54: ErrorDocument 403 /adm/login
55: ErrorDocument 404 /adm/notfound.html
56: ErrorDocument 406 /adm/unauthorized.html
57: ErrorDocument 500 /adm/errorhandler
58: </LocationMatch>
59:
60: <LocationMatch "^/raw.*">
61: PerlAccessHandler Apache::lonracc
62: </LocationMatch>
63:
64: <LocationMatch "^/\~.*">
65: PerlAccessHandler Apache::loncacc
66: ErrorDocument 403 /adm/login
67: ErrorDocument 404 /adm/notfound.html
68: ErrorDocument 406 /adm/unauthorized.html
69: ErrorDocument 500 /adm/errorhandler
70: AllowOverride None
71: </LocationMatch>
72:
73: # ------------------------------------------------------------------------- RAT
74:
75: <LocationMatch "^/\~.*\.sequence$">
76: SetHandler perl-script
77: PerlHandler Apache::lonratedt
78: </LocationMatch>
79:
80: <LocationMatch "^/\~.*\.page$">
81: SetHandler perl-script
82: PerlHandler Apache::lonratedt
83: </LocationMatch>
84:
85: <LocationMatch "^/\~.*\/ratserver$">
86: SetHandler perl-script
87: PerlHandler Apache::lonratsrv
88: </LocationMatch>
89:
90: <Location /adm/ratparms>
91: PerlAccessHandler Apache::lonacc
92: SetHandler perl-script
93: PerlHandler Apache::lonratparms
94: ErrorDocument 403 /adm/login
95: ErrorDocument 500 /adm/errorhandler
96: </Location>
97:
98: # --------------------------------------------- Resource Space Content Handlers
99:
100: <LocationMatch "^/res.*/$">
101: SetHandler perl-script
102: PerlHandler Apache::lonindexer
103: </LocationMatch>
104:
105: <LocationMatch "^/(res|\~).*\.tex$">
106: SetHandler perl-script
107: PerlHandler Apache::lontex
108: </LocationMatch>
109:
110: <LocationMatch "^/res/.*\.page$>
111: SetHandler perl-script
112: PerlHandler Apache::lonpage
113: </LocationMatch>
114:
115: <LocationMatch "^/res/.*\.sequence$>
116: SetHandler perl-script
117: PerlHandler Apache::lonsequence
118: </LocationMatch>
119:
120: <LocationMatch "^/res/.*\.meta$>
121: SetHandler perl-script
122: PerlHandler Apache::lonmeta
123: </LocationMatch>
124:
125: <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$">
126: SetHandler perl-script
127: PerlHandler Apache::lonxml
128: </LocationMatch>
129:
130: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
131: SetHandler perl-script
132: PerlHandler Apache::lonhomework
133: </LocationMatch>
134:
135: <LocationMatch "^/adm/wrapper/">
136: PerlAccessHandler Apache::lonacc
137: SetHandler perl-script
138: PerlHandler Apache::lonwrapper
139: ErrorDocument 403 /adm/login
140: ErrorDocument 500 /adm/errorhandler
141: </LocationMatch>
142:
143: # -------------------------------------------------------------- Admin Programs
144:
145: <Location /adm/statistics>
146: PerlAccessHandler Apache::lonacc
147: SetHandler perl-script
148: PerlHandler Apache::lonstatistics
149: ErrorDocument 403 /adm/login
150: ErrorDocument 500 /adm/errorhandler
151: </Location>
152:
153: <Location /adm/roles>
154: PerlAccessHandler Apache::lonacc
155: SetHandler perl-script
156: PerlHandler Apache::lonroles
157: ErrorDocument 403 /adm/login
158: ErrorDocument 500 /adm/errorhandler
159: </Location>
160:
161: <Location /adm/login>
162: SetHandler perl-script
163: PerlHandler Apache::lonlogin
164: </Location>
165:
166: <Location /adm/logout>
167: PerlAccessHandler Apache::lonacc
168: SetHandler perl-script
169: PerlHandler Apache::lonlogout
170: ErrorDocument 403 /adm/login
171: </Location>
172:
173: <Location /adm/authenticate>
174: SetHandler perl-script
175: PerlHandler Apache::lonauth
176: </Location>
177:
178: <Location /adm/annotations>
179: PerlAccessHandler Apache::lonacc
180: SetHandler perl-script
181: PerlHandler Apache::admannotations
182: ErrorDocument 403 /adm/login
183: ErrorDocument 500 /adm/errorhandler
184: </Location>
185:
186: <Location /adm/bookmarks>
187: PerlAccessHandler Apache::lonacc
188: SetHandler perl-script
189: PerlHandler Apache::admbookmarks
190: ErrorDocument 403 /adm/login
191: ErrorDocument 500 /adm/errorhandler
192: </Location>
193:
194: <Location /adm/flip>
195: PerlAccessHandler Apache::lonacc
196: SetHandler perl-script
197: PerlHandler Apache::lonpageflip
198: ErrorDocument 406 /adm/roles
199: ErrorDocument 403 /adm/login
200: ErrorDocument 500 /adm/errorhandler
201: </Location>
202:
203: <Location /adm/ambiguous>
204: PerlAccessHandler Apache::lonacc
205: SetHandler perl-script
206: PerlHandler Apache::lonambiguous
207: ErrorDocument 403 /adm/login
208: ErrorDocument 500 /adm/errorhandler
209: </Location>
210:
211: <Location /adm/email>
212: PerlAccessHandler Apache::lonacc
213: SetHandler perl-script
214: PerlHandler Apache::lonmsg
215: ErrorDocument 403 /adm/login
216: ErrorDocument 500 /adm/errorhandler
217: </Location>
218:
219: <Location /adm/parmset>
220: PerlAccessHandler Apache::lonacc
221: SetHandler perl-script
222: PerlHandler Apache::lonparmset
223: ErrorDocument 403 /adm/login
224: ErrorDocument 406 /adm/roles
225: ErrorDocument 500 /adm/errorhandler
226: </Location>
227:
228: <Location /adm/grades>
229: PerlAccessHandler Apache::lonacc
230: SetHandler perl-script
231: PerlHandler Apache::grades
232: ErrorDocument 403 /adm/login
233: ErrorDocument 406 /adm/roles
234: ErrorDocument 500 /adm/errorhandler
235: </Location>
236:
237: <Location /adm/createcourse>
238: PerlAccessHandler Apache::lonacc
239: SetHandler perl-script
240: PerlHandler Apache::loncreatecourse
241: ErrorDocument 403 /adm/login
242: ErrorDocument 406 /adm/roles
243: ErrorDocument 500 /adm/errorhandler
244: </Location>
245:
246: <Location /adm/createuser>
247: PerlAccessHandler Apache::lonacc
248: SetHandler perl-script
249: PerlHandler Apache::loncreateuser
250: ErrorDocument 403 /adm/login
251: ErrorDocument 406 /adm/roles
252: ErrorDocument 500 /adm/errorhandler
253: </Location>
254:
255: <Location /adm/publish>
256: PerlAccessHandler Apache::lonacc
257: SetHandler perl-script
258: PerlHandler Apache::lonpublisher
259: ErrorDocument 403 /adm/login
260: ErrorDocument 404 /adm/notfound.html
261: ErrorDocument 406 /adm/unauthorized.html
262: ErrorDocument 500 /adm/errorhandler
263: </Location>
264:
265: <LocationMatch "^/\~.*/$">
266: PerlAccessHandler Apache::loncacc
267: SetHandler perl-script
268: PerlHandler Apache::lonpubdir
269: ErrorDocument 403 /adm/login
270: ErrorDocument 404 /adm/notfound.html
271: ErrorDocument 406 /adm/unauthorized.html
272: ErrorDocument 500 /adm/errorhandler
273: </LocationMatch>
274:
275: <Location /adm/pubdir>
276: PerlAccessHandler Apache::lonacc
277: SetHandler perl-script
278: PerlHandler Apache::lonpubdir
279: ErrorDocument 403 /adm/login
280: ErrorDocument 404 /adm/notfound.html
281: ErrorDocument 406 /adm/unauthorized.html
282: ErrorDocument 500 /adm/errorhandler
283: </Location>
284:
285: <Location /adm/retrieve>
286: PerlAccessHandler Apache::lonacc
287: SetHandler perl-script
288: PerlHandler Apache::lonretrieve
289: ErrorDocument 403 /adm/login
290: ErrorDocument 404 /adm/notfound.html
291: ErrorDocument 406 /adm/unauthorized.html
292: ErrorDocument 500 /adm/errorhandler
293: </Location>
294:
295: <Location /adm/cfile>
296: PerlAccessHandler Apache::lonacc
297: SetHandler perl-script
298: PerlHandler Apache::loncfile
299: ErrorDocument 403 /adm/login
300: ErrorDocument 404 /adm/notfound.html
301: ErrorDocument 406 /adm/unauthorized.html
302: ErrorDocument 500 /adm/errorhandler
303: </Location>
304:
305: <Location /adm/diff>
306: PerlAccessHandler Apache::lonacc
307: SetHandler perl-script
308: PerlHandler Apache::londiff
309: ErrorDocument 403 /adm/login
310: ErrorDocument 404 /adm/notfound.html
311: ErrorDocument 406 /adm/unauthorized.html
312: ErrorDocument 500 /adm/errorhandler
313: </Location>
314:
315: <Location /adm/upload>
316: PerlAccessHandler Apache::lonacc
317: SetHandler perl-script
318: PerlHandler Apache::lonupload
319: ErrorDocument 403 /adm/login
320: ErrorDocument 404 /adm/notfound.html
321: ErrorDocument 406 /adm/unauthorized.html
322: ErrorDocument 500 /adm/errorhandler
323: </Location>
324:
325: <Location /adm/assesscalc>
326: PerlAccessHandler Apache::lonacc
327: SetHandler perl-script
328: PerlHandler Apache::lonspreadsheet
329: ErrorDocument 403 /adm/login
330: ErrorDocument 406 /adm/roles
331: ErrorDocument 500 /adm/errorhandler
332: </Location>
333:
334: <Location /adm/studentcalc>
335: PerlAccessHandler Apache::lonacc
336: SetHandler perl-script
337: PerlHandler Apache::lonspreadsheet
338: ErrorDocument 403 /adm/login
339: ErrorDocument 406 /adm/roles
340: ErrorDocument 500 /adm/errorhandler
341: </Location>
342:
343: <Location /adm/classcalc>
344: PerlAccessHandler Apache::lonacc
345: SetHandler perl-script
346: PerlHandler Apache::lonspreadsheet
347: ErrorDocument 403 /adm/login
348: ErrorDocument 406 /adm/roles
349: ErrorDocument 500 /adm/errorhandler
350: </Location>
351:
352: <Location /adm/chart>
353: PerlAccessHandler Apache::lonacc
354: SetHandler perl-script
355: PerlHandler Apache::lonchart
356: ErrorDocument 403 /adm/login
357: ErrorDocument 406 /adm/roles
358: ErrorDocument 500 /adm/errorhandler
359: </Location>
360:
361: <Location /adm/dropadd>
362: PerlAccessHandler Apache::lonacc
363: SetHandler perl-script
364: PerlHandler Apache::londropadd
365: ErrorDocument 403 /adm/login
366: ErrorDocument 406 /adm/roles
367: ErrorDocument 500 /adm/errorhandler
368: </Location>
369:
370: <Location /adm/printout>
371: PerlAccessHandler Apache::lonacc
372: SetHandler perl-script
373: PerlHandler Apache::lonprintout
374: ErrorDocument 403 /adm/login
375: ErrorDocument 500 /adm/errorhandler
376: </Location>
377:
378: <Location /adm/feedback>
379: PerlAccessHandler Apache::lonacc
380: SetHandler perl-script
381: PerlHandler Apache::lonfeedback
382: ErrorDocument 403 /adm/login
383: ErrorDocument 500 /adm/errorhandler
384: </Location>
385:
386: <Location /adm/evaluate>
387: PerlAccessHandler Apache::lonacc
388: SetHandler perl-script
389: PerlHandler Apache::lonevaluate
390: ErrorDocument 403 /adm/login
391: ErrorDocument 500 /adm/errorhandler
392: </Location>
393:
394: <Location /adm/preferences>
395: PerlAccessHandler Apache::lonacc
396: SetHandler perl-script
397: PerlHandler Apache::lonpreferences
398: ErrorDocument 403 /adm/login
399: ErrorDocument 500 /adm/errorhandler
400: </Location>
401:
402: <Location /adm/assignments>
403: PerlAccessHandler Apache::lonacc
404: SetHandler perl-script
405: PerlHandler Apache::lonassignments
406: ErrorDocument 403 /adm/login
407: ErrorDocument 406 /adm/roles
408: ErrorDocument 500 /adm/errorhandler
409: </Location>
410:
411: <Location /adm/communicate>
412: PerlAccessHandler Apache::lonacc
413: SetHandler perl-script
414: PerlHandler Apache::loncommunicate
415: ErrorDocument 403 /adm/login
416: ErrorDocument 500 /adm/errorhandler
417: </Location>
418:
419: <Location /adm/searchcat>
420: PerlAccessHandler Apache::lonacc
421: SetHandler perl-script
422: PerlHandler Apache::lonsearchcat
423: ErrorDocument 403 /adm/login
424: ErrorDocument 500 /adm/errorhandler
425: </Location>
426:
427: <Location /adm/navmaps>
428: PerlAccessHandler Apache::lonacc
429: SetHandler perl-script
430: PerlHandler Apache::lonnavmaps
431: ErrorDocument 403 /adm/login
432: ErrorDocument 406 /adm/roles
433: ErrorDocument 500 /adm/errorhandler
434: </Location>
435:
436: <Location /adm/groupsort>
437: PerlAccessHandler Apache::lonacc
438: SetHandler perl-script
439: PerlHandler Apache::groupsort
440: ErrorDocument 403 /adm/login
441: ErrorDocument 500 /adm/errorhandler
442: </Location>
443:
444: <Location /adm/errorhandler>
445: SetHandler perl-script
446: PerlHandler Apache::lonerrorhandler
447: </Location>
448:
449: # ------------------------------------------------- Backdoor Adm Tests/Programs
450:
451: <Location /cgi-bin/loncron.pl>
1.2 www 452: AuthName "LON-CAPA Network Administration"
453: AuthType Basic
454: AuthUserFile /home/httpd/lonTabs/htpasswd
455: require user lonadm
456: </Location>
457:
458: <Location /cgi-bin/lonversions.pl>
459: AuthName "LON-CAPA Network Administration"
460: AuthType Basic
461: AuthUserFile /home/httpd/lonTabs/htpasswd
462: require user lonadm
463: </Location>
464:
465: <Location /cgi-bin/clusterstatus.pl>
466: AuthName "LON-CAPA Network Administration"
1.1 harris41 467: AuthType Basic
468: AuthUserFile /home/httpd/lonTabs/htpasswd
469: require user lonadm
470: </Location>
471:
472: <Location /cgi-bin/metadata_keywords.pl>
1.2 www 473: AuthName "LON-CAPA Network Administration"
1.1 harris41 474: AuthType Basic
475: AuthUserFile /home/httpd/lonTabs/htpasswd
476: require user lonadm
477: </Location>
478:
479: <Location /adm/test>
1.2 www 480: AuthName "LON-CAPA Network Administration"
1.1 harris41 481: AuthType Basic
482: AuthUserFile /home/httpd/lonTabs/htpasswd
483: require user lonadm
484: SetHandler perl-script
485: PerlAccessHandler Apache::lonacc
486: PerlHandler Apache::lontest
487: </Location>
488:
489: # ------------------------------------------------------- Shutting down a child
490:
491: PerlChildExitHandler Apache::lonnet::goodbye
1.3 harris41 492:
493: #
494: # LON-CAPA Section (extensions to access.conf permission configuration)
495: #
496: # =========================================================== Directory Options
497:
498: # Start out with "no"
499:
500: <Directory />
501: Options None
502: AllowOverride None
503: </Directory>
504:
505: # Yes to symbolic links and server-side includes
506:
507: <Directory /home/httpd/html>
508: Options Includes FollowSymLinks
509: AllowOverride None
510: order allow,deny
511: allow from all
512: </Directory>
513:
514: # If it is in cgi-bin, then it can be executed as a CGI script.
515:
516: <Directory /home/httpd/cgi-bin>
517: AllowOverride None
518: Options ExecCGI
519: </Directory>
520:
521: # ============================================================= Access Handlers
522:
523: # ------------------------------------------------- Allow server-status reports
524: <Location /server-status>
525: SetHandler server-status
526: AuthName "LON-CAPA Network Administration"
527: AuthType Basic
528: AuthUserFile /home/httpd/lonTabs/htpasswd
529: require user lonadm
530: </Location>
531:
532: # ------------------------ Allow LON-CAPA "low-level" connection status reports
533: <Location /lon-status>
534: AuthName "LON-CAPA Network Administration"
535: AuthType Basic
536: AuthUserFile /home/httpd/lonTabs/htpasswd
537: require user lonadm
538: </Location>
539:
540: # ------------------- Allow access to local system documentation from localhost
541: Alias /doc /usr/doc
542: <Directory /usr/doc>
543: order deny,allow
544: deny from all
545: allow from localhost
546: Options Indexes FollowSymLinks
547: </Directory>
548:
549: # **** DISABLED TO STAY COMPATIBLE WITH LON-CAPA AND ACCESS.CONF FOR NOW ******
550: # ======================================= Machine Specific / Perl Configuration
551: #
552: # ------------------------ The variable values are also read and shared by lond
553:
554: # LON-internal HostID of this machine
555:
556: # PerlSetVar lonHostID {[[[[lonHostID]]]]}
557:
558: # Role of this machine: library, access
559:
560: # PerlSetVar lonRole {[[[[lonRole]]]]}
561:
562: # Server Administration
563:
564: # PerlSetVar lonAdmEMail {[[[[lonAdmEMail]]]]}
565:
566: # Default domain
567:
568: # PerlSetVar lonDefDomain {[[[[lonDefDomain]]]]}
569:
570: # Load Limit ( 100% loadavg )
571:
572: # PerlSetVar lonLoadLim {[[[[lonLoadLim]]]]}
573:
574: # Expiration for local copies and tokens in seconds
575:
576: # PerlSetVar lonExpire {[[[[lonExpire]]]]}
577:
578: # Key to issue receipts
579:
580: # PerlSetVar lonReceipt {[[[[lonReceipt]]]]}
581:
582: # Key to handle SQL access
583:
584: # PerlSetVar lonSqlAccess {[[[[lonSqlAccess]]]]}
585:
586: # ************ ENABLE SINCE THESE SHOULD BE STATIC ANYWAYS ********************
587: # ====================================== Internal Settings / Perl Configuration
588:
589: PerlSetVar lonIDsDir /home/httpd/lonIDs
590: PerlSetVar lonTabDir /home/httpd/lonTabs
591: PerlSetVar lonUsersDir /home/httpd/lonUsers
592: PerlSetVar lonIconsURL /adm/lonIcons
593: PerlSetVar londPort 5663
594: PerlSetVar lonSysEMail korte@lite.msu.edu
595: PerlSetVar lonDaemons /home/httpd/perl
596: PerlSetVar lonSockDir /home/httpd/sockets
597: PerlSetVar lonDocRoot /home/httpd/html
598: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
599: PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1
600:
601: # ================================================== Initiate mod_perl starting
602:
603: PerlRequire conf/startup.pl
604: PerlFreshRestart On
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>