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