Annotation of loncom/loncapa_apache.conf, revision 1.10
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.10 ! www 4: ## $Id: loncapa_apache.conf,v 1.9 2002/07/22 20:35:05 stredwic 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:
46: <LocationMatch "^/res.*">
47: PerlAccessHandler Apache::lonacc
48: PerlHeaderParserHandler Apache::lonrep
49: ErrorDocument 403 /adm/login
50: ErrorDocument 404 /adm/notfound.html
51: ErrorDocument 406 /adm/roles
52: ErrorDocument 500 /adm/errorhandler
53: </LocationMatch>
54:
55: <LocationMatch "^/priv.*">
56: PerlAccessHandler Apache::loncacc
57: SetHandler perl-script
58: PerlHandler Apache::lonconstruct
59: ErrorDocument 403 /adm/login
60: ErrorDocument 404 /adm/notfound.html
61: ErrorDocument 406 /adm/unauthorized.html
62: ErrorDocument 500 /adm/errorhandler
63: </LocationMatch>
64:
65: <LocationMatch "^/raw.*">
66: PerlAccessHandler Apache::lonracc
67: </LocationMatch>
68:
69: <LocationMatch "^/\~.*">
70: PerlAccessHandler Apache::loncacc
71: ErrorDocument 403 /adm/login
72: ErrorDocument 404 /adm/notfound.html
73: ErrorDocument 406 /adm/unauthorized.html
74: ErrorDocument 500 /adm/errorhandler
75: AllowOverride None
76: </LocationMatch>
77:
78: # ------------------------------------------------------------------------- RAT
79:
80: <LocationMatch "^/\~.*\.sequence$">
81: SetHandler perl-script
82: PerlHandler Apache::lonratedt
83: </LocationMatch>
84:
85: <LocationMatch "^/\~.*\.page$">
86: SetHandler perl-script
87: PerlHandler Apache::lonratedt
88: </LocationMatch>
89:
90: <LocationMatch "^/\~.*\/ratserver$">
91: SetHandler perl-script
92: PerlHandler Apache::lonratsrv
93: </LocationMatch>
94:
95: <Location /adm/ratparms>
96: PerlAccessHandler Apache::lonacc
97: SetHandler perl-script
98: PerlHandler Apache::lonratparms
99: ErrorDocument 403 /adm/login
100: ErrorDocument 500 /adm/errorhandler
101: </Location>
102:
103: # --------------------------------------------- Resource Space Content Handlers
104:
105: <LocationMatch "^/res.*/$">
106: SetHandler perl-script
107: PerlHandler Apache::lonindexer
108: </LocationMatch>
109:
110: <LocationMatch "^/(res|\~).*\.tex$">
111: SetHandler perl-script
112: PerlHandler Apache::lontex
113: </LocationMatch>
114:
115: <LocationMatch "^/res/.*\.page$>
116: SetHandler perl-script
117: PerlHandler Apache::lonpage
118: </LocationMatch>
119:
120: <LocationMatch "^/res/.*\.sequence$>
121: SetHandler perl-script
122: PerlHandler Apache::lonsequence
123: </LocationMatch>
124:
1.8 harris41 125: <LocationMatch "^/(res|\~).*\.meta$>
1.1 harris41 126: SetHandler perl-script
127: PerlHandler Apache::lonmeta
128: </LocationMatch>
129:
130: <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$">
131: SetHandler perl-script
132: PerlHandler Apache::lonxml
133: </LocationMatch>
134:
135: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
136: SetHandler perl-script
137: PerlHandler Apache::lonhomework
138: </LocationMatch>
139:
140: <LocationMatch "^/adm/wrapper/">
141: PerlAccessHandler Apache::lonacc
142: SetHandler perl-script
143: PerlHandler Apache::lonwrapper
144: ErrorDocument 403 /adm/login
145: ErrorDocument 500 /adm/errorhandler
146: </LocationMatch>
147:
148: # -------------------------------------------------------------- Admin Programs
149:
150: <Location /adm/statistics>
151: PerlAccessHandler Apache::lonacc
152: SetHandler perl-script
153: PerlHandler Apache::lonstatistics
154: ErrorDocument 403 /adm/login
155: ErrorDocument 500 /adm/errorhandler
156: </Location>
157:
158: <Location /adm/roles>
159: PerlAccessHandler Apache::lonacc
160: SetHandler perl-script
161: PerlHandler Apache::lonroles
162: ErrorDocument 403 /adm/login
163: ErrorDocument 500 /adm/errorhandler
164: </Location>
165:
166: <Location /adm/login>
167: SetHandler perl-script
168: PerlHandler Apache::lonlogin
169: </Location>
170:
171: <Location /adm/logout>
172: PerlAccessHandler Apache::lonacc
173: SetHandler perl-script
174: PerlHandler Apache::lonlogout
175: ErrorDocument 403 /adm/login
176: </Location>
177:
178: <Location /adm/authenticate>
179: SetHandler perl-script
180: PerlHandler Apache::lonauth
181: </Location>
182:
183: <Location /adm/annotations>
184: PerlAccessHandler Apache::lonacc
185: SetHandler perl-script
186: PerlHandler Apache::admannotations
187: ErrorDocument 403 /adm/login
188: ErrorDocument 500 /adm/errorhandler
189: </Location>
190:
191: <Location /adm/bookmarks>
192: PerlAccessHandler Apache::lonacc
193: SetHandler perl-script
194: PerlHandler Apache::admbookmarks
195: ErrorDocument 403 /adm/login
196: ErrorDocument 500 /adm/errorhandler
197: </Location>
198:
199: <Location /adm/flip>
200: PerlAccessHandler Apache::lonacc
201: SetHandler perl-script
202: PerlHandler Apache::lonpageflip
203: ErrorDocument 406 /adm/roles
204: ErrorDocument 403 /adm/login
205: ErrorDocument 500 /adm/errorhandler
206: </Location>
207:
208: <Location /adm/ambiguous>
209: PerlAccessHandler Apache::lonacc
210: SetHandler perl-script
211: PerlHandler Apache::lonambiguous
212: ErrorDocument 403 /adm/login
213: ErrorDocument 500 /adm/errorhandler
214: </Location>
215:
216: <Location /adm/email>
217: PerlAccessHandler Apache::lonacc
218: SetHandler perl-script
219: PerlHandler Apache::lonmsg
220: ErrorDocument 403 /adm/login
221: ErrorDocument 500 /adm/errorhandler
222: </Location>
223:
224: <Location /adm/parmset>
225: PerlAccessHandler Apache::lonacc
226: SetHandler perl-script
227: PerlHandler Apache::lonparmset
228: ErrorDocument 403 /adm/login
229: ErrorDocument 406 /adm/roles
230: ErrorDocument 500 /adm/errorhandler
231: </Location>
232:
233: <Location /adm/grades>
234: PerlAccessHandler Apache::lonacc
235: SetHandler perl-script
236: PerlHandler Apache::grades
237: ErrorDocument 403 /adm/login
238: ErrorDocument 406 /adm/roles
239: ErrorDocument 500 /adm/errorhandler
240: </Location>
241:
242: <Location /adm/createcourse>
243: PerlAccessHandler Apache::lonacc
244: SetHandler perl-script
245: PerlHandler Apache::loncreatecourse
246: ErrorDocument 403 /adm/login
247: ErrorDocument 406 /adm/roles
248: ErrorDocument 500 /adm/errorhandler
249: </Location>
250:
251: <Location /adm/createuser>
252: PerlAccessHandler Apache::lonacc
253: SetHandler perl-script
254: PerlHandler Apache::loncreateuser
255: ErrorDocument 403 /adm/login
256: ErrorDocument 406 /adm/roles
257: ErrorDocument 500 /adm/errorhandler
258: </Location>
259:
260: <Location /adm/publish>
261: PerlAccessHandler Apache::lonacc
262: SetHandler perl-script
263: PerlHandler Apache::lonpublisher
264: ErrorDocument 403 /adm/login
265: ErrorDocument 404 /adm/notfound.html
266: ErrorDocument 406 /adm/unauthorized.html
267: ErrorDocument 500 /adm/errorhandler
268: </Location>
269:
270: <LocationMatch "^/\~.*/$">
271: PerlAccessHandler Apache::loncacc
272: SetHandler perl-script
273: PerlHandler Apache::lonpubdir
274: ErrorDocument 403 /adm/login
275: ErrorDocument 404 /adm/notfound.html
276: ErrorDocument 406 /adm/unauthorized.html
277: ErrorDocument 500 /adm/errorhandler
278: </LocationMatch>
279:
280: <Location /adm/pubdir>
281: PerlAccessHandler Apache::lonacc
282: SetHandler perl-script
283: PerlHandler Apache::lonpubdir
284: ErrorDocument 403 /adm/login
285: ErrorDocument 404 /adm/notfound.html
286: ErrorDocument 406 /adm/unauthorized.html
287: ErrorDocument 500 /adm/errorhandler
288: </Location>
289:
290: <Location /adm/retrieve>
291: PerlAccessHandler Apache::lonacc
292: SetHandler perl-script
293: PerlHandler Apache::lonretrieve
294: ErrorDocument 403 /adm/login
295: ErrorDocument 404 /adm/notfound.html
296: ErrorDocument 406 /adm/unauthorized.html
297: ErrorDocument 500 /adm/errorhandler
298: </Location>
299:
300: <Location /adm/cfile>
301: PerlAccessHandler Apache::lonacc
302: SetHandler perl-script
303: PerlHandler Apache::loncfile
304: ErrorDocument 403 /adm/login
305: ErrorDocument 404 /adm/notfound.html
306: ErrorDocument 406 /adm/unauthorized.html
307: ErrorDocument 500 /adm/errorhandler
308: </Location>
309:
310: <Location /adm/diff>
311: PerlAccessHandler Apache::lonacc
312: SetHandler perl-script
313: PerlHandler Apache::londiff
314: ErrorDocument 403 /adm/login
315: ErrorDocument 404 /adm/notfound.html
316: ErrorDocument 406 /adm/unauthorized.html
317: ErrorDocument 500 /adm/errorhandler
318: </Location>
319:
320: <Location /adm/upload>
321: PerlAccessHandler Apache::lonacc
322: SetHandler perl-script
323: PerlHandler Apache::lonupload
324: ErrorDocument 403 /adm/login
325: ErrorDocument 404 /adm/notfound.html
326: ErrorDocument 406 /adm/unauthorized.html
327: ErrorDocument 500 /adm/errorhandler
328: </Location>
329:
330: <Location /adm/assesscalc>
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/studentcalc>
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/classcalc>
349: PerlAccessHandler Apache::lonacc
350: SetHandler perl-script
351: PerlHandler Apache::lonspreadsheet
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
1.10 ! www 378: ErrorDocument 403 /adm/login
! 379: ErrorDocument 500 /adm/errorhandler
! 380: </Location>
! 381:
! 382: <Location /adm/coursedocs>
! 383: PerlAccessHandler Apache::lonacc
! 384: SetHandler perl-script
! 385: PerlHandler Apache::londocs
! 386: ErrorDocument 403 /adm/login
! 387: ErrorDocument 500 /adm/errorhandler
! 388: </Location>
! 389:
! 390: <Location /adm/announcements>
! 391: PerlAccessHandler Apache::lonacc
! 392: SetHandler perl-script
! 393: PerlHandler Apache::lonannounce
! 394: ErrorDocument 403 /adm/login
! 395: ErrorDocument 500 /adm/errorhandler
! 396: </Location>
! 397:
! 398: <Location /adm/chat>
! 399: PerlAccessHandler Apache::lonacc
! 400: SetHandler perl-script
! 401: PerlHandler Apache::lonchat
1.1 harris41 402: ErrorDocument 403 /adm/login
403: ErrorDocument 500 /adm/errorhandler
404: </Location>
405:
406: <Location /adm/evaluate>
407: PerlAccessHandler Apache::lonacc
408: SetHandler perl-script
409: PerlHandler Apache::lonevaluate
410: ErrorDocument 403 /adm/login
411: ErrorDocument 500 /adm/errorhandler
412: </Location>
413:
414: <Location /adm/preferences>
415: PerlAccessHandler Apache::lonacc
416: SetHandler perl-script
417: PerlHandler Apache::lonpreferences
418: ErrorDocument 403 /adm/login
419: ErrorDocument 500 /adm/errorhandler
420: </Location>
421:
422: <Location /adm/assignments>
423: PerlAccessHandler Apache::lonacc
424: SetHandler perl-script
425: PerlHandler Apache::lonassignments
426: ErrorDocument 403 /adm/login
427: ErrorDocument 406 /adm/roles
428: ErrorDocument 500 /adm/errorhandler
429: </Location>
430:
431: <Location /adm/communicate>
432: PerlAccessHandler Apache::lonacc
433: SetHandler perl-script
434: PerlHandler Apache::loncommunicate
435: ErrorDocument 403 /adm/login
436: ErrorDocument 500 /adm/errorhandler
437: </Location>
438:
439: <Location /adm/searchcat>
440: PerlAccessHandler Apache::lonacc
441: SetHandler perl-script
442: PerlHandler Apache::lonsearchcat
443: ErrorDocument 403 /adm/login
444: ErrorDocument 500 /adm/errorhandler
445: </Location>
446:
447: <Location /adm/navmaps>
448: PerlAccessHandler Apache::lonacc
449: SetHandler perl-script
450: PerlHandler Apache::lonnavmaps
451: ErrorDocument 403 /adm/login
452: ErrorDocument 406 /adm/roles
453: ErrorDocument 500 /adm/errorhandler
454: </Location>
455:
456: <Location /adm/groupsort>
457: PerlAccessHandler Apache::lonacc
458: SetHandler perl-script
459: PerlHandler Apache::groupsort
460: ErrorDocument 403 /adm/login
461: ErrorDocument 500 /adm/errorhandler
462: </Location>
463:
464: <Location /adm/errorhandler>
465: SetHandler perl-script
466: PerlHandler Apache::lonerrorhandler
467: </Location>
468:
1.7 bowersj2 469: <LocationMatch "^/adm/help/.*\.hlp$">
470: SetHandler perl-script
471: PerlHandler Apache::lonhelp
472: </LocationMatch>
473:
1.1 harris41 474: # ------------------------------------------------- Backdoor Adm Tests/Programs
475:
476: <Location /cgi-bin/loncron.pl>
477: AuthName "LON-CAPA Network Administration"
478: AuthType Basic
479: AuthUserFile /home/httpd/lonTabs/htpasswd
480: require user lonadm
481: </Location>
482:
483: <Location /cgi-bin/lonversions.pl>
484: AuthName "LON-CAPA Network Administration"
485: AuthType Basic
486: AuthUserFile /home/httpd/lonTabs/htpasswd
487: require user lonadm
488: </Location>
489:
490: <Location /cgi-bin/clusterstatus.pl>
491: AuthName "LON-CAPA Network Administration"
492: AuthType Basic
493: AuthUserFile /home/httpd/lonTabs/htpasswd
494: require user lonadm
495: </Location>
496:
497: <Location /cgi-bin/metadata_keywords.pl>
498: AuthName "LON-CAPA Network Administration"
499: AuthType Basic
500: AuthUserFile /home/httpd/lonTabs/htpasswd
501: require user lonadm
502: </Location>
503:
504: <Location /adm/test>
505: AuthName "LON-CAPA Network Administration"
506: AuthType Basic
507: AuthUserFile /home/httpd/lonTabs/htpasswd
508: require user lonadm
509: SetHandler perl-script
510: PerlAccessHandler Apache::lonacc
511: PerlHandler Apache::lontest
512: </Location>
513:
514: # ------------------------------------------------------- Shutting down a child
515:
516: PerlChildExitHandler Apache::lonnet::goodbye
517:
518: #
519: # LON-CAPA Section (extensions to access.conf permission configuration)
520: #
521: # =========================================================== Directory Options
522:
523: # Start out with "no"
524:
525: <Directory />
526: Options None
527: AllowOverride None
528: </Directory>
529:
530: # Yes to symbolic links and server-side includes
531:
532: <Directory /home/httpd/html>
533: Options Includes FollowSymLinks
534: AllowOverride None
535: order allow,deny
536: allow from all
537: </Directory>
538:
539: # If it is in cgi-bin, then it can be executed as a CGI script.
540:
541: <Directory /home/httpd/cgi-bin>
542: AllowOverride None
543: Options ExecCGI
544: </Directory>
545:
546: # ============================================================= Access Handlers
547:
548: # ------------------------------------------------- Allow server-status reports
549: <Location /server-status>
550: SetHandler server-status
551: AuthName "LON-CAPA Network Administration"
552: AuthType Basic
553: AuthUserFile /home/httpd/lonTabs/htpasswd
554: require user lonadm
555: </Location>
556:
557: # ------------------------ Allow LON-CAPA "low-level" connection status reports
558: <Location /lon-status>
559: AuthName "LON-CAPA Network Administration"
560: AuthType Basic
561: AuthUserFile /home/httpd/lonTabs/htpasswd
562: require user lonadm
563: </Location>
564:
565: # ------------------- Allow access to local system documentation from localhost
566: Alias /doc /usr/doc
567: <Directory /usr/doc>
568: order deny,allow
569: deny from all
570: allow from localhost
571: Options Indexes FollowSymLinks
572: </Directory>
573:
574: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
575: # ====================================== Internal Settings / Perl Configuration
576:
577: PerlSetVar lonIDsDir /home/httpd/lonIDs
578: PerlSetVar lonTabDir /home/httpd/lonTabs
579: PerlSetVar lonUsersDir /home/httpd/lonUsers
580: PerlSetVar lonIconsURL /adm/lonIcons
581: PerlSetVar londPort 5663
582: PerlSetVar lonSysEMail korte@lite.msu.edu
583: PerlSetVar lonDaemons /home/httpd/perl
584: PerlSetVar lonSockDir /home/httpd/sockets
585: PerlSetVar lonDocRoot /home/httpd/html
586: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
587: 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
1.2 harris41 588:
589: # -----------------------------------------------------------------------------
590: # NOTE: lonSqlAccess key is the password for the MySQL user
591: # www@localhost. This value must always be "localhostkey".
592: # The only security risk occurs when somebody logs in as 'www' on your system
593: # (in which case you have much bigger problems than whether or not they
594: # can access the non-authoritative loncapa database on your machine).
595:
596: PerlSetVar lonSqlAccess localhostkey
597:
598: # -----------------------------------------------------------------------------
599:
600:
1.8 harris41 601: # ====================================== Include machine-specific configuration
1.2 harris41 602:
603: Include conf/loncapa.conf
1.1 harris41 604:
605: # ================================================== Initiate mod_perl starting
606:
607: PerlRequire conf/startup.pl
608: PerlFreshRestart On
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>