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