On Tue, 20 Jan 2009 12:07:16 +0800 "Johann Vincent Paul Tagle" <johannta...@gmail.com> wrote:
> I know about port forwarding, but is it possible to also forward > based on actual hostname being accessed? I have a machine with 1 > public address, and I have virtual machines in that box. Currently > each VM has a specific service running (e.g. DB, webserver, etc) so > NAT+port forwarding sufficed. But now I need more than one webserver > so I'm hoping I can also forward to a specific VM depending on the > actual hostname/URL being accessed. Is this possible? What do I > have to use? NAT and port forwarding operates on layer 4. Host names are a layer 7 concept. I don't think port forwarding is what you need to do here. If all you're doing is web, I think you need set up apache or squid on your host as a reverse proxy for your virtual domains (which, I assume, must have their own internal virtual IP addresses accessible to the host). Analogous solutions may be possible for other services, but they basically all boil down to the application layer protocol having support for virtual domains to begin with, just as HTTP 1.1 does, and the ability to proxy virtual domains. -- I am the bone of my sword. Steel is my body, and fire is my blood. I have created over a thousand blades. Unaware of loss. Nor aware of gain. Withstood pain to create many weapons. Waiting for one's arrival. I have no regrets, this is the only path. My whole life was Unlimited Blade Works. http://stormwyrm.blogspot.com
signature.asc
Description: PGP signature
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph