Annotation of loncom/loncapa_apache.conf, revision 1.8
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.8 ! harris41 4: ## $Id: loncapa_apache.conf,v 1.7 2002/07/05 16:12:31 bowersj2 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/chart>
358: PerlAccessHandler Apache::lonacc
359: SetHandler perl-script
360: PerlHandler Apache::lonchart
361: ErrorDocument 403 /adm/login
362: ErrorDocument 406 /adm/roles
363: ErrorDocument 500 /adm/errorhandler
364: </Location>
365:
366: <Location /adm/dropadd>
367: PerlAccessHandler Apache::lonacc
368: SetHandler perl-script
369: PerlHandler Apache::londropadd
370: ErrorDocument 403 /adm/login
371: ErrorDocument 406 /adm/roles
372: ErrorDocument 500 /adm/errorhandler
373: </Location>
374:
375: <Location /adm/printout>
376: PerlAccessHandler Apache::lonacc
377: SetHandler perl-script
378: PerlHandler Apache::lonprintout
379: ErrorDocument 403 /adm/login
380: ErrorDocument 500 /adm/errorhandler
381: </Location>
382:
383: <Location /adm/feedback>
384: PerlAccessHandler Apache::lonacc
385: SetHandler perl-script
386: PerlHandler Apache::lonfeedback
387: ErrorDocument 403 /adm/login
388: ErrorDocument 500 /adm/errorhandler
389: </Location>
390:
391: <Location /adm/evaluate>
392: PerlAccessHandler Apache::lonacc
393: SetHandler perl-script
394: PerlHandler Apache::lonevaluate
395: ErrorDocument 403 /adm/login
396: ErrorDocument 500 /adm/errorhandler
397: </Location>
398:
399: <Location /adm/preferences>
400: PerlAccessHandler Apache::lonacc
401: SetHandler perl-script
402: PerlHandler Apache::lonpreferences
403: ErrorDocument 403 /adm/login
404: ErrorDocument 500 /adm/errorhandler
405: </Location>
406:
407: <Location /adm/assignments>
408: PerlAccessHandler Apache::lonacc
409: SetHandler perl-script
410: PerlHandler Apache::lonassignments
411: ErrorDocument 403 /adm/login
412: ErrorDocument 406 /adm/roles
413: ErrorDocument 500 /adm/errorhandler
414: </Location>
415:
416: <Location /adm/communicate>
417: PerlAccessHandler Apache::lonacc
418: SetHandler perl-script
419: PerlHandler Apache::loncommunicate
420: ErrorDocument 403 /adm/login
421: ErrorDocument 500 /adm/errorhandler
422: </Location>
423:
424: <Location /adm/searchcat>
425: PerlAccessHandler Apache::lonacc
426: SetHandler perl-script
427: PerlHandler Apache::lonsearchcat
428: ErrorDocument 403 /adm/login
429: ErrorDocument 500 /adm/errorhandler
430: </Location>
431:
432: <Location /adm/navmaps>
433: PerlAccessHandler Apache::lonacc
434: SetHandler perl-script
435: PerlHandler Apache::lonnavmaps
436: ErrorDocument 403 /adm/login
437: ErrorDocument 406 /adm/roles
438: ErrorDocument 500 /adm/errorhandler
439: </Location>
440:
441: <Location /adm/groupsort>
442: PerlAccessHandler Apache::lonacc
443: SetHandler perl-script
444: PerlHandler Apache::groupsort
445: ErrorDocument 403 /adm/login
446: ErrorDocument 500 /adm/errorhandler
447: </Location>
448:
449: <Location /adm/errorhandler>
450: SetHandler perl-script
451: PerlHandler Apache::lonerrorhandler
452: </Location>
453:
1.7 bowersj2 454: <LocationMatch "^/adm/help/.*\.hlp$">
455: SetHandler perl-script
456: PerlHandler Apache::lonhelp
457: </LocationMatch>
458:
1.1 harris41 459: # ------------------------------------------------- Backdoor Adm Tests/Programs
460:
461: <Location /cgi-bin/loncron.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/lonversions.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 /cgi-bin/clusterstatus.pl>
476: AuthName "LON-CAPA Network Administration"
477: AuthType Basic
478: AuthUserFile /home/httpd/lonTabs/htpasswd
479: require user lonadm
480: </Location>
481:
482: <Location /cgi-bin/metadata_keywords.pl>
483: AuthName "LON-CAPA Network Administration"
484: AuthType Basic
485: AuthUserFile /home/httpd/lonTabs/htpasswd
486: require user lonadm
487: </Location>
488:
489: <Location /adm/test>
490: AuthName "LON-CAPA Network Administration"
491: AuthType Basic
492: AuthUserFile /home/httpd/lonTabs/htpasswd
493: require user lonadm
494: SetHandler perl-script
495: PerlAccessHandler Apache::lonacc
496: PerlHandler Apache::lontest
497: </Location>
498:
499: # ------------------------------------------------------- Shutting down a child
500:
501: PerlChildExitHandler Apache::lonnet::goodbye
502:
503: #
504: # LON-CAPA Section (extensions to access.conf permission configuration)
505: #
506: # =========================================================== Directory Options
507:
508: # Start out with "no"
509:
510: <Directory />
511: Options None
512: AllowOverride None
513: </Directory>
514:
515: # Yes to symbolic links and server-side includes
516:
517: <Directory /home/httpd/html>
518: Options Includes FollowSymLinks
519: AllowOverride None
520: order allow,deny
521: allow from all
522: </Directory>
523:
524: # If it is in cgi-bin, then it can be executed as a CGI script.
525:
526: <Directory /home/httpd/cgi-bin>
527: AllowOverride None
528: Options ExecCGI
529: </Directory>
530:
531: # ============================================================= Access Handlers
532:
533: # ------------------------------------------------- Allow server-status reports
534: <Location /server-status>
535: SetHandler server-status
536: AuthName "LON-CAPA Network Administration"
537: AuthType Basic
538: AuthUserFile /home/httpd/lonTabs/htpasswd
539: require user lonadm
540: </Location>
541:
542: # ------------------------ Allow LON-CAPA "low-level" connection status reports
543: <Location /lon-status>
544: AuthName "LON-CAPA Network Administration"
545: AuthType Basic
546: AuthUserFile /home/httpd/lonTabs/htpasswd
547: require user lonadm
548: </Location>
549:
550: # ------------------- Allow access to local system documentation from localhost
551: Alias /doc /usr/doc
552: <Directory /usr/doc>
553: order deny,allow
554: deny from all
555: allow from localhost
556: Options Indexes FollowSymLinks
557: </Directory>
558:
559: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
560: # ====================================== Internal Settings / Perl Configuration
561:
562: PerlSetVar lonIDsDir /home/httpd/lonIDs
563: PerlSetVar lonTabDir /home/httpd/lonTabs
564: PerlSetVar lonUsersDir /home/httpd/lonUsers
565: PerlSetVar lonIconsURL /adm/lonIcons
566: PerlSetVar londPort 5663
567: PerlSetVar lonSysEMail korte@lite.msu.edu
568: PerlSetVar lonDaemons /home/httpd/perl
569: PerlSetVar lonSockDir /home/httpd/sockets
570: PerlSetVar lonDocRoot /home/httpd/html
571: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
572: 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 573:
574: # -----------------------------------------------------------------------------
575: # NOTE: lonSqlAccess key is the password for the MySQL user
576: # www@localhost. This value must always be "localhostkey".
577: # The only security risk occurs when somebody logs in as 'www' on your system
578: # (in which case you have much bigger problems than whether or not they
579: # can access the non-authoritative loncapa database on your machine).
580:
581: PerlSetVar lonSqlAccess localhostkey
582:
583: # -----------------------------------------------------------------------------
584:
585:
1.8 ! harris41 586: # ====================================== Include machine-specific configuration
1.2 harris41 587:
588: Include conf/loncapa.conf
1.1 harris41 589:
590: # ================================================== Initiate mod_perl starting
591:
592: PerlRequire conf/startup.pl
593: PerlFreshRestart On
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>