On Tue, Feb 4, 2014 at 1:37 PM, Charles W Buege <cbu...@moreycorp.com>wrote:

> Here's what I'd like to do now:  If there is an incoming connection to
> www.avengers.org that is going to port 3306 (MySQL) for example, how can
> I configure the system to pass this information along?
>

Services like MySQL don't have the idea of virtual hosting. All they know
is that a connection was made.
I am pretty sure that virtual hosting was only added to HTTP in version 1.1
with the addition of the Host header.

I use SSH port forwarding to connect to MySQL, which may help with what you
are trying to do.


ssh -L local_port:remote_host:remote_port ssh_server

So for example:

ssh -L 3306:site2.avengers.org:3306 10.1.12.11

ssh -L 3306:www.avengers.org:3306 10.1.12.11

and then connect your MySQL client to localhost:3306.

- Y

Reply via email to