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