Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] multiple POP-3 servers on one machine


> Unless you are doing IP address based virtual hosting, which is what I am
> using.

In which case I can't tell you *exactly* what apache does - but I can give
you a feasible method.. :)

Basically in terms of a threaded application, you can always get one
process to bind to port 80 and listen. Everytime a request comes in to
that particular port (since there is only one port, regardless of the IP
it will go to that port anyhow) the process can look at the connection
struct which will include (amongst other things) source port, dest port,
source ip, dest ip for that that particular stream.. it would then be a
trivial task for the process to serve the appropriate site based on the
dst ip.


//umar.