Running nevow/twistd on a vhost

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Apr 8, 2024

Reference: Add the vhost to your DNS server…

hendry@bilbo:/etc/maradns$ egrep nevow dabase


Enable libproxy:

sudo dpkg-reconfigure apache

hendry@bilbo:/etc/maradns$ egrep proxy /etc/apache/modules.conf

LoadModule proxy_module /usr/lib/apache/1.3/

Add the bits to httpd.conf:


ProxyPass / http://localhost:8081/



Restart/Reload maradns/apache I chose port 8081 as the port I want the twistd to run on. Your .tac of course needs this value too. Ok, lets open a port to check everything is OK (OPTIONAL)

sudo iptables -I block -i eth0 -p tcp --dport 8081 -j ACCEPT

Ok, ok, lets run:

twistd -noy pastebin.tac