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