From: Reinhard M. <ma...@tc...> - 2006-11-07 15:26:12
|
Hi, On Tue, 7 Nov 2006 at 15:14, Steve Blinkhorn wrote: > What about multiple software servers, i.e. instances of tclhttpd, > each responding to a different virtual domain but using the same > port number, although on just one IP address? That wouldn't work. TCP/IP doesn't know about host names and so doesn't have a way to distinguish between connections to the domains A and B if both servers listen on the same IP address and port name. Or did you mean the machine has multiple IP addresses and each server listens on a different one? That would work, but be a waste of IP addresses and is the very reason why the possibility to run web service for multiple domains through a single IP/port pair was added to the HTTP protocol. Also, multiple tclhttpd processes running on a single machine might consume more resources (especially memory) than using a single instance. OTOH, there might be valid reasons for running separate instances, e.g. for privilege separation or fail safety. > And when did this feature arrive in tclhttpd? IIRC it was one or two releases ago. cu Reinhard |