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