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