[Twisted-Python] t.web vhost -> personal server mapping
Thomas Raschbacher
lordvan at lordvan.com
Wed Mar 12 13:01:14 MST 2003
hi!
itamar asked me to post this to the list so here it is:
attached a small .rpy which can be used to map different vhosts ->
'personal' twisted.web servers listening on udp sockets (or anything else)
the getChild is just a hack and i'm not completely sure if it's the
only/best solution for this but it works this way (i mean the path stuff)
btw it's best used with a server creatd like this (imho ;)):
mktap --resource-script=vhostuser.rpy
and then user-servers like this:
mktap --path=/path/to/my/files --personal
comments, suggestions, improvments welcome :)
greetz, LordVan
--
-----BEGIN GEEK CODE BLOCK-----
GCS/CC/E/M/MU/S d- s: a--- C++++(++) UL++++ P+ L++++ E W+++ N+++ o-- K w-- O
M-- V- PS+ PE-- Y++ PGP+++ t+++ 5+ X- R tv b++++ DI- D+ G++ e-->+++++ h-- !r
z-
------END GEEK CODE BLOCK------
-----------------------------------------
This email was sent using SquirrelMail.
"Webmail for nuts!"
http://squirrelmail.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vhostuser.rpy
Type: application/octet-stream
Size: 2133 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030312/c909fb82/attachment-0002.obj>
More information about the Twisted-Python
mailing list