Web2py is “full stack” Python Web Framework, Lighttpd is fast, multi-threaded HTTP server. I’ll present a method to connect web2py-based application under lighttpd.
I assume the following setup is already done:
- A domain named “myapp.com” is configured to point to your server
- Python / lighttpd is already installed on server
- Your web2py app is placed under /var/www/web2py
- Your web2py app has application “myapproot” configured
First of all, you have to configure lighttpd to locate web2py application, create file /etc/lighttpd/conf-enabled/myapp.conf:


