[Twisted-Python] How to configure twisted web?

Andy Gayton andy at thecablelounge.com
Sat Jan 15 04:42:51 MST 2005


Mosas wrote:

> Dear All,
> 
>      I have doubt when I installed twisted web.
> After the installation twisted web Whether we need any
> other webserver or not to run web programs?
>      I normally run all the server side coding(perl
> scripts,php scripts) the following path.
> "http://192.168.0.21/cgi-bin/helloworld.pl"  in
> my machine. like that How I need to  run a perl
> program in Twisted.

Try:

http://twistedmatrix.com/documents/current/howto/using-twistedweb#auto20

 >    I have confusion to give path details for mktap.
 > How I need to give path for mktap to run
 > like (http://192.168.0.21/cgi-bin/helloworld.pl).

Save the above snippet to say www/perlsite.rpy and change the paths to 
be right for you.  Then run

 > mktap web --resource-script=www/perlsite.rpy
 > twistd -f ./web.tap

Never tried this myself, so .. hoping it works :)

good luck,

Andy.




More information about the Twisted-Python mailing list