httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] Traffic forwarding.....
Date Tue, 04 Feb 2014 20:03:26 GMT
On Tue, Feb 4, 2014 at 1:37 PM, Charles W Buege <cbuege@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

Mime
View raw message