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