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