|
|
@@ -13,21 +13,13 @@ Listen 8080 |
|
|
|
Order allow,deny |
|
|
|
Allow from all |
|
|
|
|
|
|
|
# enable direct execution of .py files |
|
|
|
Options +ExecCGI |
|
|
|
#AddHandler cgi-script .cgi |
|
|
|
AddHandler cgi-script .py |
|
|
|
Options -Indexes +ExecCGI |
|
|
|
AddHandler cgi-script |
|
|
|
|
|
|
|
DirectoryIndex index.html |
|
|
|
DirectoryIndex index.cgi index.html |
|
|
|
|
|
|
|
RewriteEngine On |
|
|
|
|
|
|
|
# all model calls will be redirected to model.py |
|
|
|
# to call a model - mysite/models/type/name eg. mysite.com/models/Organization/WebNotes |
|
|
|
RewriteRule /models/(.*)$ /lib/model.py/$1 [L,QSA] |
|
|
|
|
|
|
|
# all page calls will be redircted to page.py |
|
|
|
# page/home |
|
|
|
RewriteRule /pages/(.*)$ /lib/page.py/$1 [L,QSA] |
|
|
|
|
|
|
|
</Directory> |
|
|
|