comparison doc/deployment.rst @ 64:25fdd985d046 draft

Documentation updates.
author David Barts <n5jrn@me.com>
date Mon, 01 Jul 2019 09:44:51 -0700
parents 8867b3a5c4fa
children
comparison
equal deleted inserted replaced
63:8867b3a5c4fa 64:25fdd985d046
26 How exactly to do this is beyond the scope of this document, but here's an example of serving a webapp using ``mod_wsgi`` under Apache. Note how rewrites are used to ensure that only *dynamic* content is served by TinCan, leaving static content to be served by Apache itself. 26 How exactly to do this is beyond the scope of this document, but here's an example of serving a webapp using ``mod_wsgi`` under Apache. Note how rewrites are used to ensure that only *dynamic* content is served by TinCan, leaving static content to be served by Apache itself.
27 27
28 In the configuration file for the site in question:: 28 In the configuration file for the site in question::
29 29
30 WSGIScriptAlias /ti_webapp /home/davidb/webapp.wsgi 30 WSGIScriptAlias /ti_webapp /home/davidb/webapp.wsgi
31 RewriteEngine on
31 RewriteRule ^/ti/(.*\.pspx)$ /ti_webapp/$1 [PT] 32 RewriteRule ^/ti/(.*\.pspx)$ /ti_webapp/$1 [PT]
32 <LocationMatch "^/ti/WEB-INF/"> 33 <LocationMatch "^/ti/WEB-INF/">
33 Order deny,allow 34 Order deny,allow
34 Deny from all 35 Deny from all
35 </LocationMatch> 36 </LocationMatch>
36 <LocationMatch "^/ti/.*\.(py|pyc|pt)$"> 37 <LocationMatch "^/ti/.*\.(py|pyc|pt)$">
37 Order deny,allow 38 Order deny,allow
38 Deny from all 39 Deny from all
39 </LocationMatch> 40 </LocationMatch>
40 <Directory "/var/www/html/ti"> 41 <Directory "/var/www/html/ti">
41 DirectoryIndex index.pspx index.html 42 DirectoryIndex index.html index.pspx
42 </Directory> 43 </Directory>
43 <Directory "/home/davidb"> 44 <Directory "/home/davidb">
44 <Files "webapp.wsgi"> 45 <Files "webapp.wsgi">
45 Order deny,allow 46 Order deny,allow
46 Allow from all 47 Allow from all