[Twisted-web] documentation -- Techno Turkey's fifth adventure

L. Daniel Burr ldanielburr at mac.com
Mon Jul 17 14:01:40 CDT 2006


Hi Manlio,


On Mon, 17 Jul 2006 13:54:18 -0500, Manlio Perillo  
<manlio_perillo at libero.it> wrote:

> Valentino Volonghi aka Dialtone ha scritto:
>> [...]
>>
>> Since we are talking about best practices... :)
>>
>> [...]
>
>> /ProjectName
>>   /static
>>       /i   - images
>>       /s   - styles
>>       /j   - javascript
>
> An interesting question is:
> when one should consider the option of serving static content with a
> server like lighttpd, and forward with mod_proxy requests for dynamic
> content to twisted web?
>

For the purposes of the tutorial currently being discussed, I think that
this question is premature.  A later tutorial, concerning production
environments, deployment, etc, would be the perfect place to cover things
like using static web servers to offload certain pieces of content from
twisted.

> static.File is a no match versus lighttpd, but there is the overhead of
> mod_proxy and one should also consider how to design the site layout at
> the best.
>

Agreed, but again, this is a topic for much further down the road.  This
particular tutorial is much more limited in scope, and more beginner
oriented.

Also, I'll point out that the directory layouts proposed by myself and
by dialtone aren't really affected by the use of static.File versus
some other webserver.  The layout can remain the same regardless.

L. Daniel Burr



More information about the Twisted-web mailing list