Re: [squid-users] Multiple http servers behind a single squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 17 Oct 2004 16:32:17 +0200 (CEST)

On Sat, 16 Oct 2004, Tom Le wrote:

> For example, one of my oracle web servers, app1.internal.com, is running on
> port 7777, how can I redirect my http://tomle.com/app1,
> which is a public DNS address, to my oracle web server on port 7777?

It depends. Is this Orcacle application installed under /app1 on the
internal server, or at a different URL-path?

As I expressed before I strongly advice to make sure the external and
internal URLs are compatible as far as possible. Compatible == This server
would work just fine if it was placed instead of the reverse proxy and
only the application of this server was accessed.

But it is entirely possible to bend this almost as far as you like. But if
you need to rewrite the url-path (the part after the host:port component)
then you need to use a redirector helper.

Acceleration works in two steps:

1. Squid reconstructs the requested URL (full URL, including host name) by
the help of the httpd_accel_* directives.

2. Squid forwards this URL pretty much the same as if a client configured
to use this Squid as proxy had requested this URL.

In step 2 you have all the powers of request forwarding Squid gives you

   * Redirectors, to rewrite/modify URLs as needed while they are forwarded

   * cache_peer + cache_peer_access etc to select to forward the requests
to other servers or proxies of choice.

   * Direct forwarding via host name lookup -> IP (local hosts file, DNS,
or whatever name resolution schemes you have available on your server).

Regards
Henrik
Received on Sun Oct 17 2004 - 08:32:21 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST