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