serve2 allows you to serve multiple protocols on a single socket.
Example handlers include proxy, HTTP, TLS (through which HTTPS is handled), ECHO and DISCARD. More can easily be added, as long as the protocol sends some data that can be recognized. The proxy handler allows you to redirect the connection to external services, such as OpenSSH or Nginx…
OMG. This is sort of brilliant.
via Tumblr http://bit.ly/1KpXTxR