diff --git a/VERSION b/VERSION index 1f3ae31e..a9189776 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-19 22:40:59) stable +Version 1.99.4 (2012-02-19 22:47:06) stable diff --git a/cgihandler.py b/cgihandler.py index 66d13b30..05843cb6 100755 --- a/cgihandler.py +++ b/cgihandler.py @@ -5,6 +5,49 @@ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) + +This is a CGI handler for Apache +Requires apache+[mod_cgi or mod_cgid]. + +In httpd.conf put something like: + + LoadModule cgi_module modules/mod_cgi.so + ScriptAlias / /path/to/cgihandler.py/ + +Example of httpd.conf ------------ + + ServerName web2py.example.com + ScriptAlias / /users/www-data/web2py/cgihandler.py/ + + + AllowOverride None + Order Allow,Deny + Deny from all + + Allow from all + + + + AliasMatch ^/([^/]+)/static/(.*) \ + /users/www-data/web2py/applications/$1/static/$2 + + Order Allow,Deny + Allow from all + + + + Deny from all + + + + Deny from all + + + CustomLog /private/var/log/apache2/access.log common + ErrorLog /private/var/log/apache2/error.log + +---------------------------------- + """ import os