High performance Python web-app

holger krekel pyth at devel.trillke.net
Tue May 14 05:48:42 EDT 2002


Steve Holden wrote:
> "iwk" <iwk_removethis at xs4all_removethisalso.nl> wrote in message
> news:3CDE9D7B.7050408 at xs4all_removethisalso.nl...
> > Hi there,
> >
> > We've been using a custom developed html/python templating system which
> > runs under CGI. It was ported to mod_python one year and a half ago, but
> >    as the system was only used for small-scale sites, in the end that
> > was never taken into production. Now however, a customer wants to deploy
> > the system on Apache 2 running on Win32 and the site is expected to
> > attract a rather large number of visistors on occasion. Considering the
> > abysmal performance of CGI apps on Windows, this poses a considerable
> > problem.
> >
> > My question is: are there any *stable* solutions available to enable
> > fast ptyhon web-apps running on Apache 2/Win32? (Mod_python only runs on
> > Apache 1.3 as far as I know and Mod_snake seems to have been taken off
> > line....)
> >
> 
> A recent thread seemed to suggest the best way would simply be to have
> Apache map a subset of URLs to a pure-Python server process.

the configuration option is 'ProxyPass':

    ProxyPass /sub/name/ http://localhost:7000

in your domain's configuration section would pass requests
such as  

    http://www.yourdomain.net/sub/name/something
to 
    http://localhost:7000/something

see e.g.

http://httpd.apache.org/docs/mod/mod_proxy.html#proxypass

for details. 

    holger





More information about the Python-list mailing list