[Twisted-web] Apache and Twisted

Thomas Mangin thomas.mangin at exa-networks.co.uk
Sat Apr 17 01:39:07 MDT 2004


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

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

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



More information about the Twisted-web mailing list