1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.201 2011/01/18 00:21:57 www Exp $
5: ##
6:
7: #
8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
9: #
10: # ================================================================ DocumentRoot
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: <IfDefine !MODPERL2>
23: AddModule mod_perl.c
24: </IfDefine>
25:
26: <IfDefine MODPERL2>
27: PerlSetVar MODPERL2 1
28: </IfDefine>
29: # =============================================================== Miscellaneous
30:
31: ServerAdmin korte@lite.msu.edu
32: ExtendedStatus On
33: #
34: # LON-CAPA Section (extensions to srm.conf name space servicing)
35: #
36: # ===================================================================== Aliases
37:
38: Alias /zipspool/ /home/httpd/zipspool/
39: Alias /prtspool/ /home/httpd/prtspool/
40: Alias /captchaspool/ /home/httpd/captchaspool/
41: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
42:
43: # ================================================================= Directories
44:
45: # ------------------------------------------------------------- Access Handlers
46:
47: PerlTransHandler Apache::lontrans
48: PerlCleanupHandler Apache::lonacc::cleanup
49:
50: PerlAuthenHandler Apache::checkauthen
51: PerlSetVar lonOtherAuthen no
52:
53: #PerlWarn On
54: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
55: PerlAuthenHandler 'sub { return OK }'
56: </LocationMatch>
57:
58: # Send proper expires header to avoid unnecessary HTTP request for static content
59: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor)">
60: ExpiresActive On
61: ExpiresDefault "access plus 12 hours"
62: Header set Cache-Control "public, no-transform"
63: </LocationMatch>
64:
65: <LocationMatch "^/+res.*">
66:
67: AuthType LONCAPA
68: Require valid-user
69:
70: PerlAccessHandler Apache::publiccheck
71: PerlAuthzHandler Apache::lonacc
72: PerlHeaderParserHandler Apache::lonrep
73: ErrorDocument 403 /adm/login
74: ErrorDocument 404 /adm/notfound.html
75: ErrorDocument 406 /adm/roles
76: ErrorDocument 500 /adm/errorhandler
77: </LocationMatch>
78:
79:
80: <LocationMatch "/.*">
81: </LocationMatch>
82:
83:
84: <LocationMatch "^/+enc.*">
85: SetHandler perl-script
86: PerlHandler Apache::lonencurl
87: ErrorDocument 403 /adm/login
88: ErrorDocument 404 /adm/notfound.html
89: ErrorDocument 406 /adm/roles
90: ErrorDocument 500 /adm/errorhandler
91: </LocationMatch>
92:
93: <Location /adm/portfolio>
94: AuthType LONCAPA
95: Require valid-user
96: PerlAuthzHandler Apache::lonacc
97: SetHandler perl-script
98: PerlHandler Apache::portfolio
99: </Location>
100:
101: <Location /adm/coursegrp_portfolio>
102: AuthType LONCAPA
103: Require valid-user
104: PerlAuthzHandler Apache::lonacc
105: SetHandler perl-script
106: PerlHandler Apache::portfolio
107: </Location>
108:
109: <Location /adm/pdfupload>
110: AuthType LONCAPA
111: Require valid-user
112: PerlAuthzHandler Apache::lonacc
113: SetHandler perl-script
114: PerlHandler Apache::lonpdfupload
115: ErrorDocument 403 /adm/login
116: ErrorDocument 404 /adm/notfound.html
117: ErrorDocument 406 /adm/roles
118: ErrorDocument 500 /adm/errorhandler
119: </Location>
120:
121: <LocationMatch "^/+userfiles.*">
122: PerlAccessHandler Apache::lontokacc
123: PerlCleanupHandler Apache::lontokacc::removefile
124: PerlCleanupHandler Apache::lonacc::cleanup
125: </LocationMatch>
126:
127: <LocationMatch "^/+uploaded.*">
128: AuthType LONCAPA
129: Require valid-user
130: PerlAuthzHandler Apache::lonacc
131: PerlHandler Apache::londatecheck
132: PerlHandler Apache::lonipcheck
133: PerlHeaderParserHandler Apache::lonuploadrep
134: ErrorDocument 403 /adm/login
135: ErrorDocument 404 /adm/notfound.html
136: ErrorDocument 406 /adm/roles
137: ErrorDocument 500 /adm/errorhandler
138: </LocationMatch>
139:
140: <LocationMatch "^/+editupload.*">
141: AuthType LONCAPA
142: Require valid-user
143: PerlAuthzHandler Apache::lonacc
144: ErrorDocument 403 /adm/login
145: ErrorDocument 406 /adm/roles
146: ErrorDocument 500 /adm/errorhandler
147: </LocationMatch>
148:
149: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
150: PerlAuthenHandler Apache::lonuploadedacc
151: PerlAuthzHandler Apache::lonuploadedacc::skip_phase
152: PerlAccessHandler Apache::lonuploadedacc::skip_phase
153: </LocationMatch>
154:
155: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
156: PerlAccessHandler Apache::publiccheck
157: AuthType LONCAPA
158: Require valid-user
159: PerlAuthzHandler Apache::lonacc
160: </LocationMatch>
161:
162: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
163: PerlAccessHandler Apache::publiccheck
164: AuthType LONCAPA
165: Require valid-user
166: PerlAuthzHandler Apache::lonacc
167: </LocationMatch>
168:
169: <LocationMatch "^/+uploaded/.*\.page$">
170: SetHandler perl-script
171: PerlHandler Apache::lonpage
172: </LocationMatch>
173:
174: <LocationMatch "^/+uploaded/.*\.sequence$">
175: SetHandler perl-script
176: PerlHandler Apache::lonsequence
177: </LocationMatch>
178:
179: <LocationMatch "^/+public/.*/syllabus$">
180: PerlAccessHandler Apache::publiccheck
181: AuthType LONCAPA
182: Require valid-user
183: PerlAuthzHandler Apache::lonacc
184: SetHandler perl-script
185: PerlHandler Apache::lonsyllabus
186: ErrorDocument 404 /adm/notfound.html
187: ErrorDocument 500 /adm/errorhandler
188: </LocationMatch>
189:
190: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
191: PerlAccessHandler Apache::publiccheck
192: AuthType LONCAPA
193: Require valid-user
194: PerlAuthzHandler Apache::lonacc
195: SetHandler perl-script
196: PerlHandler Apache::lonrss
197: ErrorDocument 404 /adm/notfound.html
198: ErrorDocument 500 /adm/errorhandler
199: </LocationMatch>
200:
201: <LocationMatch "^/adm/.*/aboutme$">
202: AuthType LONCAPA
203: Require valid-user
204: PerlAuthzHandler Apache::lonacc
205: SetHandler perl-script
206: PerlHandler Apache::lonaboutme
207: ErrorDocument 404 /adm/notfound.html
208: ErrorDocument 406 /adm/notinit.html
209: ErrorDocument 500 /adm/errorhandler
210: </LocationMatch>
211:
212: <LocationMatch "^/adm/.*/aboutme/portfolio$">
213: PerlAccessHandler Apache::publiccheck
214: AuthType LONCAPA
215: Require valid-user
216: PerlAuthzHandler Apache::lonacc
217: SetHandler perl-script
218: PerlHandler Apache::lonaboutme
219: ErrorDocument 404 /adm/notfound.html
220: ErrorDocument 406 /adm/notinit.html
221: ErrorDocument 500 /adm/errorhandler
222: </LocationMatch>
223:
224: <LocationMatch "^/adm/.*/smppg$">
225: AuthType LONCAPA
226: Require valid-user
227: PerlAuthzHandler Apache::lonacc
228: SetHandler perl-script
229: PerlHandler Apache::londatecheck
230: PerlHandler Apache::lonipcheck
231: PerlHandler Apache::lonsimplepage
232: ErrorDocument 404 /adm/notfound.html
233: ErrorDocument 406 /adm/notinit.html
234: ErrorDocument 500 /adm/errorhandler
235: </LocationMatch>
236:
237: <LocationMatch "^/adm/.*/bulletinboard$">
238: AuthType LONCAPA
239: Require valid-user
240: PerlAuthzHandler Apache::lonacc
241: SetHandler perl-script
242: PerlHandler Apache::londatecheck
243: PerlHandler Apache::lonipcheck
244: PerlHandler Apache::lonbulletin
245: ErrorDocument 404 /adm/notfound.html
246: ErrorDocument 406 /adm/notinit.html
247: ErrorDocument 500 /adm/errorhandler
248: </LocationMatch>
249:
250: <LocationMatch "\.problem/smpedit$">
251: AuthType LONCAPA
252: Require valid-user
253: PerlAuthzHandler Apache::lonacc
254: SetHandler perl-script
255: PerlHandler Apache::lonsimpleproblemedit
256: ErrorDocument 404 /adm/notfound.html
257: ErrorDocument 406 /adm/notinit.html
258: ErrorDocument 500 /adm/errorhandler
259: </LocationMatch>
260:
261: <LocationMatch "^/+priv.*">
262: AuthType LONCAPA
263: Require valid-user
264: PerlAuthzHandler Apache::loncacc
265: SetHandler perl-script
266: PerlHandler Apache::lonconstruct
267: ErrorDocument 403 /adm/login
268: ErrorDocument 404 /adm/notfound.html
269: ErrorDocument 406 /adm/unauthorized
270: ErrorDocument 500 /adm/errorhandler
271: </LocationMatch>
272:
273: <LocationMatch "^/+raw.*">
274: PerlAccessHandler Apache::lonracc
275: </LocationMatch>
276:
277: <LocationMatch "^/+\~.*">
278: AuthType LONCAPA
279: Require valid-user
280: PerlAuthzHandler Apache::loncacc
281: ErrorDocument 403 /adm/login
282: ErrorDocument 404 /adm/notfound.html
283: ErrorDocument 406 /adm/unauthorized
284: ErrorDocument 500 /adm/errorhandler
285: </LocationMatch>
286:
287: <LocationMatch "^/adm/helper/.*\.helper$">
288: AuthType LONCAPA
289: Require valid-user
290: PerlAuthzHandler Apache::lonacc
291: SetHandler perl-script
292: PerlHandler Apache::lonhelper
293: ErrorDocument 403 /adm/login
294: ErrorDocument 404 /adm/notfound.html
295: ErrorDocument 406 /adm/unauthorized
296: ErrorDocument 500 /adm/errorhandler
297: </LocationMatch>
298:
299: <LocationMatch "/prtspool">
300: AuthType LONCAPA
301: Require valid-user
302: PerlAuthzHandler Apache::lonacc
303: ErrorDocument 403 /adm/login
304: ErrorDocument 404 /adm/notfound.html
305: ErrorDocument 406 /adm/roles
306: ErrorDocument 413 /adm/overloaded.txt
307: ErrorDocument 500 /adm/errorhandler
308: </LocationMatch>
309:
310: <LocationMatch "/zipspool">
311: AuthType LONCAPA
312: Require valid-user
313: PerlAuthzHandler Apache::lonacc
314: ErrorDocument 403 /adm/login
315: ErrorDocument 404 /adm/notfound.html
316: ErrorDocument 406 /adm/roles
317: ErrorDocument 413 /adm/overloaded.txt
318: ErrorDocument 500 /adm/errorhandler
319: </LocationMatch>
320: # ------------------------------------------------------------------------- RAT
321:
322: <LocationMatch "^/\~.*\.sequence$">
323: SetHandler perl-script
324: PerlHandler Apache::lonratedt
325: </LocationMatch>
326:
327: <LocationMatch "^/\~.*\.page$">
328: SetHandler perl-script
329: PerlHandler Apache::lonratedt
330: </LocationMatch>
331:
332: <LocationMatch "^/\~.*\/ratserver$">
333: SetHandler perl-script
334: PerlHandler Apache::lonratsrv
335: </LocationMatch>
336:
337: <LocationMatch "^/\~.*\/adveditmenu$">
338: SetHandler perl-script
339: PerlHandler Apache::lonratmenu
340: </LocationMatch>
341:
342: <Location /adm/ratparms>
343: AuthType LONCAPA
344: Require valid-user
345: PerlAuthzHandler Apache::lonacc
346: SetHandler perl-script
347: PerlHandler Apache::lonratparms
348: ErrorDocument 403 /adm/login
349: ErrorDocument 500 /adm/errorhandler
350: </Location>
351:
352: # --------------------------------------------- Resource Space Content Handlers
353:
354: <LocationMatch "^/+res.*/$">
355: SetHandler perl-script
356: PerlHandler Apache::lonindexer
357: PerlCleanupHandler Apache::lonindexer::cleanup
358: PerlCleanupHandler Apache::lonacc::cleanup
359: </LocationMatch>
360:
361: <LocationMatch "^/+res.*\.tex$">
362: SetHandler perl-script
363: PerlHandler Apache::lontex
364: </LocationMatch>
365:
366: <LocationMatch "^/+res/.*\.page$">
367: SetHandler perl-script
368: PerlHandler Apache::lonpage
369: </LocationMatch>
370:
371: <LocationMatch "^/+res/.*\.sequence$">
372: SetHandler perl-script
373: PerlHandler Apache::lonsequence
374: </LocationMatch>
375:
376: <LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$">
377: PerlAccessHandler Apache::publiccheck
378: SetHandler perl-script
379: PerlHandler Apache::lonmeta
380: ErrorDocument 413 /adm/overloaded.txt
381: </LocationMatch>
382:
383: <LocationMatch "^/adm/bombs/">
384: AuthType LONCAPA
385: Require valid-user
386: SetHandler perl-script
387: PerlAuthzHandler Apache::lonacc
388: PerlHandler Apache::lonmeta
389: </LocationMatch>
390:
391:
392:
393: <LocationMatch "^/+(res|\~).*\.rights$">
394: SetHandler perl-script
395: PerlHandler Apache::lonrights
396: </LocationMatch>
397:
398: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
399: SetHandler perl-script
400: PerlHandler Apache::londatecheck
401: PerlHandler Apache::lonipcheck
402: PerlHandler Apache::lonxml
403: </LocationMatch>
404:
405: <LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
406: SetHandler perl-script
407: PerlHandler Apache::lonhomework
408: </LocationMatch>
409:
410: <LocationMatch "^/+\~.*\.(js|css|txt|tex)$">
411: SetHandler perl-script
412: PerlHandler Apache::lonxml
413: </LocationMatch>
414:
415: <LocationMatch "^/adm/wrapper/">
416: AuthType LONCAPA
417: Require valid-user
418: PerlAuthzHandler Apache::lonacc
419: PerlHandler Apache::londatecheck
420: PerlHandler Apache::lonipcheck
421: SetHandler perl-script
422: PerlHandler Apache::lonwrapper
423: ErrorDocument 403 /adm/login
424: ErrorDocument 500 /adm/errorhandler
425: </LocationMatch>
426:
427: <LocationMatch "^/adm/source">
428: AuthType LONCAPA
429: Require valid-user
430: PerlAuthzHandler Apache::lonacc
431: SetHandler perl-script
432: PerlHandler Apache::lonsource
433: ErrorDocument 403 /adm/login
434: ErrorDocument 406 /adm/roles
435: ErrorDocument 500 /adm/errorhandler
436: </LocationMatch>
437:
438:
439: <LocationMatch "^/adm/localize/">
440: AuthType LONCAPA
441: Require valid-user
442: PerlAuthzHandler Apache::lonacc
443: SetHandler perl-script
444: PerlHandler Apache::lonlocalize
445: ErrorDocument 403 /adm/login
446: ErrorDocument 500 /adm/errorhandler
447: </LocationMatch>
448:
449: # -------------------------------------------------------------- Admin Programs
450:
451: <Location /adm/randomlabel.png>
452: AuthType LONCAPA
453: Require valid-user
454: PerlAuthzHandler Apache::lonacc
455: SetHandler perl-script
456: PerlHandler Apache::randomlylabel
457: ErrorDocument 403 /adm/login
458: ErrorDocument 500 /adm/errorhandler
459: </Location>
460:
461: <Location /adm/imagechoice>
462: AuthType LONCAPA
463: Require valid-user
464: PerlAuthzHandler Apache::lonacc
465: SetHandler perl-script
466: PerlHandler Apache::imagechoice
467: ErrorDocument 403 /adm/login
468: ErrorDocument 500 /adm/errorhandler
469: </Location>
470:
471: <Location /adm/searchcourse>
472: AuthType LONCAPA
473: Require valid-user
474: PerlAuthzHandler Apache::lonacc
475: SetHandler perl-script
476: PerlHandler Apache::lonsearchcourse
477: ErrorDocument 403 /adm/login
478: ErrorDocument 500 /adm/errorhandler
479: </Location>
480:
481: <Location /adm/indexcourse>
482: AuthType LONCAPA
483: Require valid-user
484: PerlAuthzHandler Apache::lonacc
485: SetHandler perl-script
486: PerlHandler Apache::lonindexcourse
487: ErrorDocument 403 /adm/login
488: ErrorDocument 500 /adm/errorhandler
489: </Location>
490:
491: <Location /adm/statistics>
492: AuthType LONCAPA
493: Require valid-user
494: PerlAuthzHandler Apache::lonacc
495: SetHandler perl-script
496: PerlHandler Apache::lonstatistics
497: ErrorDocument 403 /adm/login
498: ErrorDocument 413 /adm/overloaded.txt
499: ErrorDocument 500 /adm/errorhandler
500: </Location>
501:
502: <Location /adm/trackstudent>
503: AuthType LONCAPA
504: Require valid-user
505: PerlAuthzHandler Apache::lonacc
506: SetHandler perl-script
507: PerlHandler Apache::lontrackstudent
508: ErrorDocument 403 /adm/login
509: ErrorDocument 413 /adm/overloaded.txt
510: ErrorDocument 500 /adm/errorhandler
511: </Location>
512:
513: <Location /adm/roles>
514: AuthType LONCAPA
515: Require valid-user
516: PerlAuthzHandler Apache::lonacc
517: SetHandler perl-script
518: PerlHandler Apache::lonroles
519: ErrorDocument 403 /adm/login
520: ErrorDocument 409 /adm/preferences?action=lockwarning
521: ErrorDocument 500 /adm/errorhandler
522: </Location>
523:
524: <Location /adm/menu>
525: AuthType LONCAPA
526: Require valid-user
527: PerlAuthzHandler Apache::lonacc
528: SetHandler perl-script
529: PerlHandler Apache::lonmainmenu
530: ErrorDocument 403 /adm/login
531: ErrorDocument 500 /adm/errorhandler
532: </Location>
533:
534: <Location /adm/pickauthor>
535: AuthType LONCAPA
536: Require valid-user
537: PerlAuthzHandler Apache::lonacc
538: SetHandler perl-script
539: PerlHandler Apache::lonpickauthor
540: ErrorDocument 403 /adm/login
541: ErrorDocument 500 /adm/errorhandler
542: </Location>
543:
544: <Location /adm/pickstudent>
545: AuthType LONCAPA
546: Require valid-user
547: PerlAuthzHandler Apache::lonacc
548: SetHandler perl-script
549: PerlHandler Apache::lonpickstudent
550: ErrorDocument 403 /adm/login
551: ErrorDocument 500 /adm/errorhandler
552: </Location>
553:
554: <Location /adm/pickuser>
555: AuthType LONCAPA
556: Require valid-user
557: PerlAuthzHandler Apache::lonacc
558: SetHandler perl-script
559: PerlHandler Apache::lonpickuser
560: ErrorDocument 403 /adm/login
561: ErrorDocument 406 /adm/roles
562: ErrorDocument 500 /adm/errorhandler
563: </Location>
564:
565: <Location /adm/pickcourse>
566: AuthType LONCAPA
567: Require valid-user
568: PerlAuthzHandler Apache::lonacc
569: SetHandler perl-script
570: PerlHandler Apache::lonpickcourse
571: ErrorDocument 403 /adm/login
572: ErrorDocument 500 /adm/errorhandler
573: </Location>
574:
575: <Location /adm/pickcode>
576: AuthType LONCAPA
577: Require valid-user
578: PerlAuthzHandler Apache::lonacc
579: SetHandler perl-script
580: PerlHandler Apache::lonpickcode
581: ErrorDocument 403 /adm/login
582: ErrorDocument 500 /adm/errorhandler
583: </Location>
584:
585: <Location /adm/login>
586: SetHandler perl-script
587: PerlHandler Apache::lonlogin
588: </Location>
589:
590: <Location /adm/restrictedaccess>
591: PerlAccessHandler Apache::publiccheck
592: AuthType LONCAPA
593: Require valid-user
594: SetHandler perl-script
595: PerlAuthzHandler Apache::lonacc
596: PerlHandler Apache::restrictedaccess
597: ErrorDocument 500 /adm/errorhandler
598: </Location>
599:
600: <Location /adm/blockedaccess>
601: PerlAccessHandler Apache::publiccheck
602: AuthType LONCAPA
603: Require valid-user
604: SetHandler perl-script
605: PerlAuthzHandler Apache::lonacc
606: PerlHandler Apache::blockedaccess
607: ErrorDocument 500 /adm/errorhandler
608: </Location>
609:
610: <Location /adm/logout>
611: AuthType LONCAPA
612: Require valid-user
613: PerlAuthzHandler Apache::lonacc
614: SetHandler perl-script
615: PerlHandler Apache::lonlogout
616: ErrorDocument 403 /adm/login
617: ErrorDocument 409 /adm/preferences?action=lockwarning
618: ErrorDocument 500 /adm/errorhandler
619: </Location>
620:
621: <Location /adm/switchserver>
622: AuthType LONCAPA
623: Require valid-user
624: PerlAuthzHandler Apache::lonacc
625: SetHandler perl-script
626: PerlHandler Apache::switchserver
627: ErrorDocument 403 /adm/login
628: ErrorDocument 500 /adm/errorhandler
629: </Location>
630:
631: <Location /adm/authenticate>
632: SetHandler perl-script
633: PerlHandler Apache::lonauth
634: </Location>
635:
636: <Location /adm/migrateuser>
637: SetHandler perl-script
638: PerlHandler Apache::migrateuser
639: </Location>
640:
641: <Location /adm/annotations>
642: AuthType LONCAPA
643: Require valid-user
644: PerlAuthzHandler Apache::lonacc
645: SetHandler perl-script
646: PerlHandler Apache::admannotations
647: ErrorDocument 403 /adm/login
648: ErrorDocument 500 /adm/errorhandler
649: </Location>
650:
651: <Location /adm/spellcheck>
652: AuthType LONCAPA
653: Require valid-user
654: PerlAuthzHandler Apache::lonacc
655: SetHandler perl-script
656: PerlHandler Apache::lonspeller
657: ErrorDocument 403 /adm/login
658: ErrorDocument 500 /adm/errorhandler
659: </Location>
660:
661: <Location /adm/flip>
662: AuthType LONCAPA
663: Require valid-user
664: PerlAuthzHandler Apache::lonacc
665: SetHandler perl-script
666: PerlHandler Apache::lonpageflip
667: PerlCleanupHandler Apache::lonpageflip::cleanup
668: PerlCleanupHandler Apache::lonacc::cleanup
669: ErrorDocument 406 /adm/roles
670: ErrorDocument 403 /adm/login
671: ErrorDocument 500 /adm/errorhandler
672: </Location>
673:
674: <Location /adm/ambiguous>
675: AuthType LONCAPA
676: Require valid-user
677: PerlAuthzHandler Apache::lonacc
678: SetHandler perl-script
679: PerlHandler Apache::lonambiguous
680: PerlCleanupHandler Apache::lonambiguous::cleanup
681: PerlCleanupHandler Apache::lonacc::cleanup
682: ErrorDocument 403 /adm/login
683: ErrorDocument 500 /adm/errorhandler
684: </Location>
685:
686: <Location /adm/email>
687: AuthType LONCAPA
688: Require valid-user
689: PerlAuthzHandler Apache::lonacc
690: SetHandler perl-script
691: PerlHandler Apache::lonmsgdisplay
692: ErrorDocument 403 /adm/login
693: ErrorDocument 500 /adm/errorhandler
694: </Location>
695:
696: <Location /adm/notify>
697: AuthType LONCAPA
698: Require valid-user
699: PerlAuthzHandler Apache::lonacc
700: SetHandler perl-script
701: PerlHandler Apache::lonnotify
702: ErrorDocument 403 /adm/login
703: ErrorDocument 500 /adm/errorhandler
704: </Location>
705:
706: <Location /adm/parmset>
707: AuthType LONCAPA
708: Require valid-user
709: PerlAuthzHandler Apache::lonacc
710: SetHandler perl-script
711: PerlHandler Apache::lonparmset
712: ErrorDocument 403 /adm/login
713: ErrorDocument 406 /adm/roles
714: ErrorDocument 500 /adm/errorhandler
715: </Location>
716:
717: <Location /adm/courseprefs>
718: AuthType LONCAPA
719: Require valid-user
720: PerlAuthzHandler Apache::lonacc
721: SetHandler perl-script
722: PerlHandler Apache::courseprefs
723: ErrorDocument 403 /adm/login
724: ErrorDocument 406 /adm/roles
725: ErrorDocument 500 /adm/errorhandler
726: </Location>
727:
728: <Location /adm/slotrequest>
729: AuthType LONCAPA
730: Require valid-user
731: PerlAuthzHandler Apache::lonacc
732: SetHandler perl-script
733: PerlHandler Apache::slotrequest
734: ErrorDocument 403 /adm/login
735: ErrorDocument 406 /adm/roles
736: ErrorDocument 500 /adm/errorhandler
737: </Location>
738:
739: <Location /adm/wizard>
740: AuthType LONCAPA
741: Require valid-user
742: PerlAuthzHandler Apache::lonacc
743: SetHandler perl-script
744: PerlHandler Apache::lonwizard
745: ErrorDocument 403 /adm/login
746: ErrorDocument 406 /adm/roles
747: ErrorDocument 500 /adm/errorhandler
748: </Location>
749:
750: <Location /adm/grades>
751: AuthType LONCAPA
752: Require valid-user
753: PerlAuthzHandler Apache::lonacc
754: SetHandler perl-script
755: PerlHandler Apache::grades
756: ErrorDocument 403 /adm/login
757: ErrorDocument 406 /adm/roles
758: ErrorDocument 500 /adm/errorhandler
759: </Location>
760:
761: <Location /adm/requestcourse>
762: AuthType LONCAPA
763: Require valid-user
764: PerlAuthzHandler Apache::lonacc
765: SetHandler perl-script
766: PerlHandler Apache::lonrequestcourse
767: ErrorDocument 403 /adm/login
768: ErrorDocument 406 /adm/roles
769: ErrorDocument 500 /adm/errorhandler
770: </Location>
771:
772: <Location /adm/createcourse>
773: AuthType LONCAPA
774: Require valid-user
775: PerlAuthzHandler Apache::lonacc
776: SetHandler perl-script
777: PerlHandler Apache::loncreatecourse
778: ErrorDocument 403 /adm/login
779: ErrorDocument 406 /adm/roles
780: ErrorDocument 500 /adm/errorhandler
781: </Location>
782:
783: <Location /adm/modifycourse>
784: AuthType LONCAPA
785: Require valid-user
786: PerlAuthzHandler Apache::lonacc
787: SetHandler perl-script
788: PerlHandler Apache::lonmodifycourse
789: ErrorDocument 403 /adm/login
790: ErrorDocument 406 /adm/roles
791: ErrorDocument 500 /adm/errorhandler
792: </Location>
793:
794: <Location /adm/domainprefs>
795: AuthType LONCAPA
796: Require valid-user
797: PerlAuthzHandler Apache::lonacc
798: SetHandler perl-script
799: PerlHandler Apache::domainprefs
800: ErrorDocument 403 /adm/login
801: ErrorDocument 406 /adm/roles
802: ErrorDocument 500 /adm/errorhandler
803: </Location>
804:
805: <Location /adm/domainstatus>
806: PerlAccessHandler Apache::lonstatusacc
807: SetHandler perl-script
808: PerlHandler Apache::domainstatus
809: ErrorDocument 403 /adm/login
810: ErrorDocument 406 /adm/roles
811: ErrorDocument 500 /adm/errorhandler
812: </Location>
813:
814: <Location /adm/createuser>
815: AuthType LONCAPA
816: Require valid-user
817: PerlAuthzHandler Apache::lonacc
818: SetHandler perl-script
819: PerlHandler Apache::loncreateuser
820: ErrorDocument 403 /adm/login
821: ErrorDocument 406 /adm/roles
822: ErrorDocument 500 /adm/errorhandler
823: </Location>
824:
825: <Location /adm/publish>
826: AuthType LONCAPA
827: Require valid-user
828: PerlAuthzHandler Apache::lonacc
829: SetHandler perl-script
830: PerlHandler Apache::lonpublisher
831: ErrorDocument 403 /adm/login
832: ErrorDocument 404 /adm/notfound.html
833: ErrorDocument 406 /adm/unauthorized
834: ErrorDocument 500 /adm/errorhandler
835: </Location>
836:
837: <LocationMatch "^/+\~.*/$">
838: AuthType LONCAPA
839: Require valid-user
840: PerlAuthzHandler Apache::loncacc
841: SetHandler perl-script
842: PerlHandler Apache::lonpubdir
843: ErrorDocument 403 /adm/login
844: ErrorDocument 404 /adm/notfound.html
845: ErrorDocument 406 /adm/unauthorized
846: ErrorDocument 500 /adm/errorhandler
847: </LocationMatch>
848:
849: <Location /adm/pubdir>
850: AuthType LONCAPA
851: Require valid-user
852: PerlAuthzHandler Apache::lonacc
853: SetHandler perl-script
854: PerlHandler Apache::lonpubdir
855: ErrorDocument 403 /adm/login
856: ErrorDocument 404 /adm/notfound.html
857: ErrorDocument 406 /adm/unauthorized
858: ErrorDocument 500 /adm/errorhandler
859: </Location>
860:
861: <Location /adm/unauthorized>
862: AuthType LONCAPA
863: Require valid-user
864: PerlAuthzHandler Apache::lonacc
865: SetHandler perl-script
866: PerlHandler Apache::lonunauthorized
867: ErrorDocument 403 /adm/login
868: ErrorDocument 404 /adm/notfound.html
869: ErrorDocument 500 /adm/errorhandler
870: </Location>
871:
872: <Location /adm/retrieve>
873: AuthType LONCAPA
874: Require valid-user
875: PerlAuthzHandler Apache::lonacc
876: SetHandler perl-script
877: PerlHandler Apache::lonretrieve
878: ErrorDocument 403 /adm/login
879: ErrorDocument 404 /adm/notfound.html
880: ErrorDocument 406 /adm/unauthorized
881: ErrorDocument 500 /adm/errorhandler
882: </Location>
883:
884: <Location /adm/cleanup>
885: AuthType LONCAPA
886: Require valid-user
887: PerlAuthzHandler Apache::lonacc
888: SetHandler perl-script
889: PerlHandler Apache::loncleanup
890: ErrorDocument 403 /adm/login
891: ErrorDocument 404 /adm/notfound.html
892: ErrorDocument 406 /adm/unauthorized
893: ErrorDocument 500 /adm/errorhandler
894: </Location>
895:
896: <Location /adm/cfile>
897: AuthType LONCAPA
898: Require valid-user
899: PerlAuthzHandler Apache::lonacc
900: SetHandler perl-script
901: PerlHandler Apache::loncfile
902: ErrorDocument 403 /adm/login
903: ErrorDocument 404 /adm/notfound.html
904: ErrorDocument 406 /adm/unauthorized
905: ErrorDocument 500 /adm/errorhandler
906: </Location>
907:
908: <Location /adm/diff>
909: AuthType LONCAPA
910: Require valid-user
911: PerlAuthzHandler Apache::lonacc
912: SetHandler perl-script
913: PerlHandler Apache::londiff
914: ErrorDocument 403 /adm/login
915: ErrorDocument 404 /adm/notfound.html
916: ErrorDocument 406 /adm/unauthorized
917: ErrorDocument 500 /adm/errorhandler
918: </Location>
919:
920: <Location /adm/upload>
921: AuthType LONCAPA
922: Require valid-user
923: PerlAuthzHandler Apache::lonacc
924: SetHandler perl-script
925: PerlHandler Apache::lonupload
926: ErrorDocument 403 /adm/login
927: ErrorDocument 404 /adm/notfound.html
928: ErrorDocument 406 /adm/unauthorized
929: ErrorDocument 500 /adm/errorhandler
930: </Location>
931:
932: <Location /adm/imsimport>
933: AuthType LONCAPA
934: Require valid-user
935: PerlAuthzHandler Apache::lonacc
936: SetHandler perl-script
937: PerlHandler Apache::imsimport
938: ErrorDocument 403 /adm/login
939: ErrorDocument 404 /adm/notfound.html
940: ErrorDocument 406 /adm/unauthorized
941: ErrorDocument 500 /adm/errorhandler
942: </Location>
943:
944: <Location /adm/testbank>
945: AuthType LONCAPA
946: Require valid-user
947: PerlAuthzHandler Apache::lonacc
948: SetHandler perl-script
949: PerlHandler Apache::testbankimport
950: ErrorDocument 403 /adm/login
951: ErrorDocument 404 /adm/notfound.html
952: ErrorDocument 406 /adm/unauthorized
953: ErrorDocument 500 /adm/errorhandler
954: </Location>
955:
956: <Location /adm/assesscalc>
957: AuthType LONCAPA
958: Require valid-user
959: PerlAuthzHandler Apache::lonacc
960: SetHandler perl-script
961: PerlHandler Apache::lonspreadsheet
962: ErrorDocument 403 /adm/login
963: ErrorDocument 406 /adm/roles
964: ErrorDocument 413 /adm/overloaded.txt
965: ErrorDocument 500 /adm/errorhandler
966: </Location>
967:
968: <Location /adm/studentcalc>
969: AuthType LONCAPA
970: Require valid-user
971: PerlAuthzHandler Apache::lonacc
972: SetHandler perl-script
973: PerlHandler Apache::lonspreadsheet
974: ErrorDocument 403 /adm/login
975: ErrorDocument 406 /adm/roles
976: ErrorDocument 413 /adm/overloaded.txt
977: ErrorDocument 500 /adm/errorhandler
978: </Location>
979:
980: <Location /adm/classcalc>
981: AuthType LONCAPA
982: Require valid-user
983: PerlAuthzHandler Apache::lonacc
984: SetHandler perl-script
985: PerlHandler Apache::lonspreadsheet
986: ErrorDocument 403 /adm/login
987: ErrorDocument 406 /adm/roles
988: ErrorDocument 413 /adm/overloaded.txt
989: ErrorDocument 500 /adm/errorhandler
990: </Location>
991:
992: <Location /adm/dropadd>
993: AuthType LONCAPA
994: Require valid-user
995: PerlAuthzHandler Apache::lonacc
996: SetHandler perl-script
997: PerlHandler Apache::londropadd
998: ErrorDocument 403 /adm/login
999: ErrorDocument 406 /adm/roles
1000: ErrorDocument 500 /adm/errorhandler
1001: </Location>
1002:
1003: <Location /adm/viewclasslist>
1004: AuthType LONCAPA
1005: Require valid-user
1006: PerlAuthzHandler Apache::lonacc
1007: SetHandler perl-script
1008: PerlHandler Apache::lonviewclasslist
1009: ErrorDocument 403 /adm/login
1010: ErrorDocument 406 /adm/roles
1011: ErrorDocument 500 /adm/errorhandler
1012: </Location>
1013:
1014: <Location /adm/coursegroups>
1015: AuthType LONCAPA
1016: Require valid-user
1017: PerlAuthzHandler Apache::lonacc
1018: SetHandler perl-script
1019: PerlHandler Apache::loncoursegroups
1020: ErrorDocument 403 /adm/login
1021: ErrorDocument 406 /adm/roles
1022: ErrorDocument 500 /adm/errorhandler
1023: </Location>
1024:
1025: <Location /adm/groupboards>
1026: AuthType LONCAPA
1027: Require valid-user
1028: PerlAuthzHandler Apache::lonacc
1029: SetHandler perl-script
1030: PerlHandler Apache::groupboards
1031: ErrorDocument 403 /adm/login
1032: ErrorDocument 406 /adm/roles
1033: ErrorDocument 500 /adm/errorhandler
1034: </Location>
1035:
1036: <Location /adm/grouproster>
1037: AuthType LONCAPA
1038: Require valid-user
1039: PerlAuthzHandler Apache::lonacc
1040: SetHandler perl-script
1041: PerlHandler Apache::grouproster
1042: ErrorDocument 403 /adm/login
1043: ErrorDocument 406 /adm/roles
1044: ErrorDocument 500 /adm/errorhandler
1045: </Location>
1046:
1047: <Location /adm/whatsnew>
1048: AuthType LONCAPA
1049: Require valid-user
1050: PerlAuthzHandler Apache::lonacc
1051: SetHandler perl-script
1052: PerlHandler Apache::lonwhatsnew
1053: ErrorDocument 403 /adm/login
1054: ErrorDocument 406 /adm/roles
1055: ErrorDocument 500 /adm/errorhandler
1056: </Location>
1057:
1058: <Location /adm/populate>
1059: AuthType LONCAPA
1060: Require valid-user
1061: PerlAuthzHandler Apache::lonacc
1062: SetHandler perl-script
1063: PerlHandler Apache::lonpopulate
1064: ErrorDocument 403 /adm/login
1065: ErrorDocument 406 /adm/roles
1066: ErrorDocument 500 /adm/errorhandler
1067: </Location>
1068:
1069: <Location /adm/managekeys>
1070: AuthType LONCAPA
1071: Require valid-user
1072: PerlAuthzHandler Apache::lonacc
1073: SetHandler perl-script
1074: PerlHandler Apache::lonmanagekeys
1075: ErrorDocument 403 /adm/login
1076: ErrorDocument 406 /adm/roles
1077: ErrorDocument 500 /adm/errorhandler
1078: </Location>
1079:
1080: <Location /adm/printout>
1081: AuthType LONCAPA
1082: Require valid-user
1083: PerlAuthzHandler Apache::lonacc
1084: SetHandler perl-script
1085: PerlHandler Apache::lonprintout
1086: ErrorDocument 403 /adm/login
1087: ErrorDocument 413 /adm/overloaded.txt
1088: ErrorDocument 500 /adm/errorhandler
1089: </Location>
1090:
1091: <Location /adm/feedback>
1092: AuthType LONCAPA
1093: Require valid-user
1094: PerlAuthzHandler Apache::lonacc
1095: SetHandler perl-script
1096: PerlHandler Apache::lonfeedback
1097: ErrorDocument 403 /adm/login
1098: ErrorDocument 500 /adm/errorhandler
1099: </Location>
1100:
1101: <Location /adm/coursedocs>
1102: AuthType LONCAPA
1103: Require valid-user
1104: PerlAuthzHandler Apache::lonacc
1105: SetHandler perl-script
1106: PerlHandler Apache::londocs
1107: PerlCleanupHandler Apache::londocs::untiehash
1108: PerlCleanupHandler Apache::lonacc::cleanup
1109: ErrorDocument 403 /adm/login
1110: ErrorDocument 500 /adm/errorhandler
1111: </Location>
1112:
1113: <Location /adm/imsimportdocs>
1114: AuthType LONCAPA
1115: Require valid-user
1116: PerlAuthzHandler Apache::lonacc
1117: SetHandler perl-script
1118: PerlHandler Apache::imsimportdocs
1119: ErrorDocument 403 /adm/login
1120: ErrorDocument 500 /adm/errorhandler
1121: </Location>
1122:
1123: <LocationMatch "^/adm/announcements">
1124: AuthType LONCAPA
1125: Require valid-user
1126: PerlAuthzHandler Apache::lonacc
1127: SetHandler perl-script
1128: PerlHandler Apache::lonannounce
1129: ErrorDocument 403 /adm/login
1130: ErrorDocument 500 /adm/errorhandler
1131: </LocationMatch>
1132:
1133: <Location /adm/chat>
1134: AuthType LONCAPA
1135: Require valid-user
1136: PerlAuthzHandler Apache::lonacc
1137: SetHandler perl-script
1138: PerlHandler Apache::lonchat
1139: ErrorDocument 500 /adm/errorhandler
1140: </Location>
1141:
1142: <Location /adm/chatfetch>
1143: AuthType LONCAPA
1144: Require valid-user
1145: PerlAuthzHandler Apache::lonacc
1146: SetHandler perl-script
1147: PerlHandler Apache::lonchatfetch
1148: ErrorDocument 413 /adm/overloaded.txt
1149: ErrorDocument 500 /adm/errorhandler
1150: </Location>
1151:
1152: <Location /adm/groupchat>
1153: AuthType LONCAPA
1154: Require valid-user
1155: PerlAuthzHandler Apache::lonacc
1156: SetHandler perl-script
1157: PerlHandler Apache::longroupchat
1158: ErrorDocument 403 /adm/login
1159: ErrorDocument 500 /adm/errorhandler
1160: </Location>
1161:
1162: <Location /adm/evaluate>
1163: AuthType LONCAPA
1164: Require valid-user
1165: PerlAuthzHandler Apache::lonacc
1166: SetHandler perl-script
1167: PerlHandler Apache::lonevaluate
1168: ErrorDocument 403 /adm/login
1169: ErrorDocument 500 /adm/errorhandler
1170: </Location>
1171:
1172: <Location /adm/preferences>
1173: AuthType LONCAPA
1174: Require valid-user
1175: PerlAuthzHandler Apache::lonacc
1176: SetHandler perl-script
1177: PerlHandler Apache::lonpreferences
1178: ErrorDocument 403 /adm/login
1179: ErrorDocument 500 /adm/errorhandler
1180: </Location>
1181:
1182: <Location /adm/communicate>
1183: AuthType LONCAPA
1184: Require valid-user
1185: PerlAuthzHandler Apache::lonacc
1186: SetHandler perl-script
1187: PerlHandler Apache::loncommunicate
1188: ErrorDocument 403 /adm/login
1189: ErrorDocument 500 /adm/errorhandler
1190: </Location>
1191:
1192: <Location /adm/searchcat>
1193: AuthType LONCAPA
1194: Require valid-user
1195: PerlAuthzHandler Apache::lonacc
1196: SetHandler perl-script
1197: PerlHandler Apache::lonsearchcat
1198: PerlCleanupHandler Apache::lonsearchcat::cleanup
1199: PerlCleanupHandler Apache::lonacc::cleanup
1200: ErrorDocument 403 /adm/login
1201: ErrorDocument 413 /adm/overloaded.txt
1202: ErrorDocument 500 /adm/errorhandler
1203: </Location>
1204:
1205: <Location /adm/navmaps>
1206: AuthType LONCAPA
1207: Require valid-user
1208: PerlAuthzHandler Apache::lonacc
1209: SetHandler perl-script
1210: PerlHandler Apache::lonnavdisplay
1211: ErrorDocument 403 /adm/login
1212: ErrorDocument 406 /adm/roles
1213: ErrorDocument 500 /adm/errorhandler
1214: </Location>
1215:
1216: <Location /adm/quickgrades>
1217: AuthType LONCAPA
1218: Require valid-user
1219: PerlAuthzHandler Apache::lonacc
1220: SetHandler perl-script
1221: PerlHandler Apache::lonquickgrades
1222: ErrorDocument 403 /adm/login
1223: ErrorDocument 406 /adm/roles
1224: ErrorDocument 500 /adm/errorhandler
1225: </Location>
1226:
1227: <Location /adm/groupsort>
1228: AuthType LONCAPA
1229: Require valid-user
1230: PerlAuthzHandler Apache::lonacc
1231: SetHandler perl-script
1232: PerlHandler Apache::groupsort
1233: PerlCleanupHandler Apache::groupsort::cleanup
1234: PerlCleanupHandler Apache::lonacc::cleanup
1235: ErrorDocument 403 /adm/login
1236: ErrorDocument 500 /adm/errorhandler
1237: </Location>
1238:
1239: <Location /adm/wishlist>
1240: AuthType LONCAPA
1241: Require valid-user
1242: PerlAuthzHandler Apache::lonacc
1243: SetHandler perl-script
1244: PerlHandler Apache::lonwishlist
1245: ErrorDocument 403 /adm/login
1246: ErrorDocument 406 /adm/roles
1247: ErrorDocument 500 /adm/errorhandler
1248: </Location>
1249:
1250: <Location /adm/blockingstatus>
1251: PerlAccessHandler Apache::publiccheck
1252: AuthType LONCAPA
1253: Require valid-user
1254: PerlAuthzHandler Apache::lonacc
1255: SetHandler perl-script
1256: PerlHandler Apache::lonblockingstatus
1257: </Location>
1258:
1259: <Location /adm/errorhandler>
1260: SetHandler perl-script
1261: PerlHandler Apache::lonerrorhandler
1262: </Location>
1263:
1264: <LocationMatch "^/adm/help/.*\.hlp$">
1265: AuthType LONCAPA
1266: Require valid-user
1267: PerlAccessHandler Apache::publiccheck
1268: PerlAuthzHandler Apache::lonacc
1269: SetHandler perl-script
1270: PerlHandler Apache::lonhelp
1271: ErrorDocument 500 /adm/errorhandler
1272: </LocationMatch>
1273:
1274: <LocationMatch "^/adm/helpmenu">
1275: AuthType LONCAPA
1276: Require valid-user
1277: PerlAuthzHandler Apache::lonacc
1278: SetHandler perl-script
1279: PerlHandler Apache::lonhelpmenu
1280: ErrorDocument 500 /adm/errorhandler
1281: </LocationMatch>
1282:
1283: <LocationMatch "^/adm/support">
1284: AuthType LONCAPA
1285: Require valid-user
1286: PerlAuthzHandler Apache::lonacc
1287: SetHandler perl-script
1288: PerlHandler Apache::lonsupportreq
1289: ErrorDocument 500 /adm/errorhandler
1290: </LocationMatch>
1291:
1292: <LocationMatch "^/adm/helpdesk">
1293: SetHandler perl-script
1294: PerlHandler Apache::lonsupportreq
1295: ErrorDocument 500 /adm/errorhandler
1296: </LocationMatch>
1297:
1298: <LocationMatch "^/adm/css">
1299: SetHandler perl-script
1300: PerlHandler Apache::loncss
1301: ErrorDocument 500 /adm/errorhandler
1302: </LocationMatch>
1303:
1304: <LocationMatch "^/adm/coursecatalog">
1305: SetHandler perl-script
1306: PerlHandler Apache::coursecatalog
1307: ErrorDocument 500 /adm/errorhandler
1308: </LocationMatch>
1309:
1310: <LocationMatch "^/adm/resetpw">
1311: SetHandler perl-script
1312: PerlHandler Apache::resetpw
1313: ErrorDocument 500 /adm/errorhandler
1314: </LocationMatch>
1315:
1316: <LocationMatch "^/adm/selfenroll">
1317: SetHandler perl-script
1318: PerlHandler Apache::selfenroll
1319: ErrorDocument 500 /adm/errorhandler
1320: </LocationMatch>
1321:
1322: <LocationMatch "^/adm/createaccount">
1323: SetHandler perl-script
1324: PerlHandler Apache::createaccount
1325: ErrorDocument 500 /adm/errorhandler
1326: </LocationMatch>
1327:
1328: <LocationMatch "^/adm/dns">
1329: SetHandler perl-script
1330: PerlHandler Apache::londns
1331: ErrorDocument 500 /adm/errorhandler
1332: </LocationMatch>
1333:
1334: # ------------------------------------------------- Backdoor Adm Tests/Programs
1335:
1336: <Location /adm/test>
1337: PerlAccessHandler Apache::lonstatusacc
1338: SetHandler perl-script
1339: PerlHandler Apache::lontest
1340: </Location>
1341:
1342: # ------------------------------------------------------- Shutting down a child
1343:
1344: PerlChildExitHandler Apache::lonacc::goodbye
1345:
1346: #
1347: # LON-CAPA Section (extensions to access.conf permission configuration)
1348: #
1349: # =========================================================== Directory Options
1350:
1351: # Start out with "no"
1352:
1353: <Directory />
1354: Options None
1355: AllowOverride None
1356: order deny,allow
1357: deny from all
1358: </Directory>
1359:
1360: # Allow uploaded files to be served
1361:
1362: <Directory "/home/httpd/lonUsers">
1363: Options Includes FollowSymLinks
1364: AllowOverride None
1365: order allow,deny
1366: allow from all
1367: </Directory>
1368:
1369: # Allow construction space files to be served
1370:
1371: <Directory "/home/*/public_html/" >
1372: Options Includes FollowSymLinks
1373: AllowOverride
1374: order allow,deny
1375: allow from all
1376: </Directory>
1377:
1378: # Yes to symbolic links and server-side includes
1379:
1380: <Directory /home/httpd/html>
1381: Options Includes FollowSymLinks
1382: AllowOverride None
1383: order allow,deny
1384: allow from all
1385: </Directory>
1386:
1387: # If it is in cgi-bin, then it can be executed as a CGI script.
1388:
1389: <Directory /home/httpd/cgi-bin>
1390: AllowOverride None
1391: Options ExecCGI FollowSymLinks
1392: order allow,deny
1393: allow from all
1394: </Directory>
1395:
1396: # Allow serving of files in prtspool
1397:
1398: <Directory "/home/httpd/prtspool/">
1399: Options Includes FollowSymLinks
1400: AllowOverride None
1401: order allow,deny
1402: allow from all
1403: </Directory>
1404:
1405: # Allow serving of files in zipspool
1406:
1407: <Directory "/home/httpd/zipspool/">
1408: Options Includes FollowSymLinks
1409: AllowOverride None
1410: order allow,deny
1411: allow from all
1412: </Directory>
1413:
1414: # Allow serving of files in captchaspool
1415:
1416: <Directory "/home/httpd/captchaspool/">
1417: Options Includes FollowSymLinks
1418: AllowOverride None
1419: order allow,deny
1420: allow from all
1421: </Directory>
1422:
1423: # ============================================================= Access Handlers
1424:
1425: # ------------------------------------------------- Allow server-status reports
1426: <Location /server-status>
1427: PerlAccessHandler Apache::lonstatusacc
1428: SetHandler server-status
1429: </Location>
1430:
1431: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1432: <LocationMatch "^/+lon-status/.*">
1433: PerlAccessHandler Apache::lonstatusacc
1434: ErrorDocument 406 /adm/roles
1435: ErrorDocument 500 /adm/errorhandler
1436: </LocationMatch>
1437:
1438: # ------------------- Allow access to local system documentation from localhost
1439: Alias /doc /usr/doc
1440: <Directory /usr/doc>
1441: order deny,allow
1442: deny from all
1443: allow from localhost
1444: Options Indexes FollowSymLinks
1445: </Directory>
1446:
1447: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1448: # ====================================== Internal Settings / Perl Configuration
1449:
1450: PerlSetVar lonVersion '<!-- VERSION -->'
1451: PerlSetVar lonIDsDir /home/httpd/lonIDs
1452: PerlSetVar lonTabDir /home/httpd/lonTabs
1453: PerlSetVar lonUsersDir /home/httpd/lonUsers
1454: PerlSetVar lonIconsURL /adm/lonIcons
1455: PerlSetVar londPort 5663
1456: PerlSetVar lonSysEMail korte@lite.msu.edu
1457: PerlSetVar lonDaemons /home/httpd/perl
1458: PerlSetVar lonLib /home/httpd/lib
1459: PerlSetVar lonSockDir /home/httpd/sockets
1460: PerlSetVar lonSockCreate /home/httpd/sockets/common
1461: PerlSetVar lonDocRoot /home/httpd/html
1462: PerlSetVar lonPrtDir /home/httpd/prtspool
1463: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1464: PerlSetVar lonZipDir /home/httpd/zipspool
1465: PerlSetVar lonCaptchaDir /home/httpd/captchaspool
1466: PerlSetVar lonCaptchaDb /home/httpd/captchadb
1467: PerlSetVar lonFontsDir /home/httpd/html/adm/fonts
1468: # & separated list of : separated fields in order of
1469: # - internal name to call it,
1470: # - regexp that it should match (done case-insensitively)
1471: # - regexp that is should not match (done case-insensitively)
1472: # - regexp that will pull out the version number into $1
1473: # - a number that describes the minimum version that has mathml support
1474: # - a number that describes the minimum number version that has unicode support
1475:
1476: PerlSetVar lonBrowsDet explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:5&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&netscape:netscape\/[7-9]:shouldnotmatch:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/([\d\.]+):9999:84
1477:
1478: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1479: PerlSetVar lonScansDir /home/httpd/scantron
1480: PerlSetVar lonScriptTimeout 10
1481: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1482: PerlSetVar FAQHost http://help.lon-capa.org/
1483: # -----------------------------------------------------------------------------
1484: # NOTE: lonSqlAccess key is the password for the MySQL user
1485: # www@localhost. This value must always be "localhostkey".
1486: # The only security risk occurs when somebody logs in as 'www' on your system
1487: # (in which case you have much bigger problems than whether or not they
1488: # can access the non-authoritative loncapa database on your machine).
1489:
1490: PerlSetVar lonSqlAccess localhostkey
1491:
1492: #----------------------------------------------------------------------------
1493: #
1494: # Parameters used by secure lond/lonc
1495:
1496: #
1497: # Secure lond/lonc require ssl certificate and private
1498: # key files to function correctly. The certificate
1499: # files need not be terribly secure, but the private key files
1500: # should be set up so that only www (the lonc/lond effective user)
1501: # can read them.
1502: #
1503: # The definition below is the full path to the directory that
1504: # contains the certificate and key files:
1505:
1506: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1507:
1508: #
1509: # Secure lond/lonc require two certificates and a private host key.
1510: # The certificates required are that of the lonCAPA certificate authority
1511: # and the certificate that authority issued to this host.
1512: # lonnetCertificateAuthority is the name of the file that contains the
1513: # lonCAPA certificate authority's certificate.
1514: # lonnetCertificate is the name of the file that contains the certificate
1515: # issued to the host by the certificate authority.
1516: # Both of these variables are names of files assumed to be in
1517: # lonCertificateDirectory:
1518:
1519: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1520: PerlSetVar lonnetCertificate lonhostcert.pem
1521:
1522: #
1523: # To generate the request for a certificate, and to negotiate the
1524: # initial ssl connection, the host requires a private key. This key
1525: # is created at lonCAPA install time. Did we mention above that it
1526: # should be set so that only www can read it? The variale below
1527: # is the name of the file relative to lonnetCertificateDirectory
1528: # that has the host's private key. Did we remember to tell you to
1529: # keep the permissions on that file set to rw------- (0600)?
1530: #
1531:
1532: PerlSetVar lonnetPrivateKey lonKey.pem
1533:
1534: # Did we mention that the file described above must have
1535: # permissions really locked down so that it can't be stolen?
1536:
1537: #-------------------------------------------------------------------------
1538:
1539: # Parameters that define where all the ssl stuff is that's needed
1540: # to generate certificate requests and, on a system that's a CA
1541: # the certificate authority.
1542: #
1543: # SSLProgram -> Path to the openssl command
1544: # SSLDirectory -> Directory containing ssl configuration files etc.
1545: # SSLCAConfig -> Name of the SSL config file for the certificate
1546: # Authority.
1547: # SSLCAFile -> Full path to the Certificate authority file
1548: # (on the cert manager system).
1549: # SSLEmail -> E-mail address of loncapa certificate manager.
1550: # The following are good for the loncapa redhat installs and
1551: # the loncapa certificate authority system:
1552: #
1553: PerlSetVar SSLProgram /usr/bin/openssl
1554: PerlSetVar SSLDirectory /usr/share/ssl
1555: PerlSetVar SSLCAConfig loncapaca
1556: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1557: PerlSetVar SSLEmail certificate@lon-capa.org
1558:
1559: #-------------------------------------------------------------------------
1560:
1561:
1562:
1563:
1564: # ====================================== Include machine-specific configuration
1565:
1566: Include conf/loncapa.conf
1567:
1568: # ================================================= Include local configuration
1569:
1570: Include conf/loncapa_apache_local*.conf
1571:
1572: # ================================================== Initiate mod_perl starting
1573:
1574: PerlRequire conf/startup.pl
1575: <IfDefine !MODPERL2>
1576: PerlFreshRestart On
1577: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>