[Twisted-web] fcgi.py

Thomas Mangin twisted-web@twistedmatrix.com
Sat, 21 Feb 2004 18:14:08 +0000


That way you can have some part of the site still served by apache if 
you need.
This example serve all page through twisted.

<VirtualHost *:80>
        # This virtual host is simply a proxy of the twisted-matrix
        # woven based site running on local port 8080

        ServerName www.exa-networks.co.uk

        RewriteEngine On
        RewriteRule   ^(.+)$    http://127.0.0.1:8080$1 [P]
        ProxyVia Block

        # Maintain logging as twistd only sees local proxy requests
        CustomLog logs/exasite-access.log combined
        ErrorLog logs/exasite-error.log
</VirtualHost>

Thomas