Re: AW: [squid-users] Accelerator Mode with two different ports

From: Henrik Nordstrom <[email protected]>
Date: Tue, 22 Apr 2003 10:58:15 +0200

Let me rephrase the question:

What URLs do you want the end-users (i.e. browsers) to use for
referring to the two web server instances?

Once you have decided upon this there is two tasks:

1. Make Squid forward the requests to the correct web server according
to your defined URL namespace. How this is done depends a little on
your definition of the URL namespace, but basically any rules are
possible.

2. Make your web servers present the information with correct links to
the information according to your defined URL namespace.

Two examples of URL namespace definitions:

a)

http://www.example.com/ -> web server instance 1
http://www.example.com/pdf/ -> web server instance 2

b)

http://www.example.com/ -> web server instance 1
http://www.example.com:8000/ -> web server instance 2

Regards
Henrik

On Tuesday 22 April 2003 10.22, Digmayer, Markus wrote:
> Hi Henrik,
> the webserver communicates with the squid-proxy via Ip-Address and
> Port Number. The Proxy receives requests on ip-adress xxx.199.17.
> The webserver has xxx.113.125.
> http_accel_host xxx.113.125
> httpd_accel_port 81 ( between proxy and webserver-instance 1 ).
>
> Now we have a second instance on IP xxx.113.125 which uses the port
> 8042. The first instance presents a directory tree ans pdf-files (
> up to this point everything works fine). As long i switch trough
> the tree i can only see the IP of the proxy ( xxx.199.17), but when
> i touch the pdf-files i can see the IP of the webserver. And when i
> click on on of the files nothing happends until i get a request
> timeout.
>
> -----Urspr�ngliche Nachricht-----
> Von: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Gesendet: Dienstag, 22. April 2003 09:54
> An: Digmayer, Markus; squid-users@squid-cache.org
> Betreff: Re: [squid-users] Accelerator Mode with two different
> ports
>
> On Tuesday 22 April 2003 08.38, Digmayer, Markus wrote:
> > Hello Admins,
> >
> > i have here a Webserver behind a firewall with two webserver
> > instances on it and one Proxy in front of the firewall. We use
> > the ports 81 and 3149 on the Webserver and one IP-Address. The
> > first Webserver on the machine is an apache intance on port 81
> > for accepting requests and send back a directory tree an the
> > server. The second one is a non apache server which sends
> > pdf-docs to the users by request over port 3149. We need to use
> > the squid accelerator mode but it is only defined with one
> > webserver one Webserver IP-Address and one Webserver Port
> > Address. Any information would be appreciated.
>
> This is fully possible to solve, but there is many ways depending
> on what you actaully want.
>
> Main question: How do you want Squid to accept these requests?
> (addresses, ports, hostnames, ...)
>
> Regards
> Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [email protected]
Received on Tue Apr 22 2003 - 03:08:15 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:09 MST