This is a canonical question about hostname-awareness and proxying.
I know that some protocols are hostname-aware; that is, when I connect to the HTTP server at www.example.com
it knows I want www.example.com
's HTTP service, not www.example.net
's, even though they are on the same IP address. How can I do this for protocol foo?
(Temporary note: this question appears pursuant to this meta discussion.)