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