MOO-cows Mailing List Archive
Virtual Host MOO: the code
Hey there, folks...
I'm the guy who wrote the core patching util, and I was wondering about
something. I patched the server code (1.8p5) for virtual hosting
capabilities, and I was wondering if anyone else has done this/if anyone
is interested in it.
A virtual host, for those of you who may not know, is an ip address and
DNS record (usually) on a machine that is not the primary IP address.
For instance, lightning.talentinfo.com is a Sparc 10 with the IP address
184.108.40.206. However, DaeMOOnSpawn, a MOO running on that same machine,
has runs as spawn.wankers.net, which is under my domain, with the IP
address 220.127.116.11. This was done by simply telling the machine to
"listen" to another IP address (other than its main one).
The main problem with running a MOO, or other server, is that it
defaults to just binding to a port on localhost, which means that it
listens to that port for ALL the IP addresses it's listening to. The
way around this is to tell bind() that you only want to listen to a
certain IP address. My modifications to the server code do exactly
Does this modification interest anyone? If so, tell me :)
Jon Mischo ;P~
Jonathan Mischo -- "...I'll run naked through the streets without my mask on."
Systems and Network Administrator -- Taos Mountain -- email@example.com
GAT/O d- s+:+ a? C++++(---)$ UBISOVX*++++$ !P>P+ !L(-) E--- W+(--) K- w---
V-- PS++ Y+(++) t+ X++++ R !tv(+) b++ DI+++++ D+++ G+ e* h- r++ y**
Subject Index |