Web to py enterprise web framework - p 32
APACHE2 AND MOD PYTHON IN A SHARED HOSTING ENVIRONMENT
295
1
nohup python fcgihandler.py &
Then, (re)start the web server with:
1
/etc/init.d/lighttpd restart
Notice that FastCGI binds the web2py server to a Unix socket, not to an IP socket:
1
/tmp/fcgi.sock
This is where Lighttpd forwards the HTTP requests to and receives responses from. Unix sockets are lighter than Internet sockets, and this is one of the reasons Lighttpd+FastCGI+web2py is fast. As in the case of Apache, it is possible to setup Lighttpd to deal with static files directly, and to force some applications over HTTPS. Refer to the Lighttpd documentation for details. The administrative interface must be disabled...