Re: [squid-users] Accelerator Mode with two differentpor ts

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 22 Apr 2003 15:38:52 +0200

What does this question have to do with this discussion thread?

>From what I can tell your question is a networking question, not a Squid
question. Squid can use whatever ISP you have a connection to, but it is
not the role of Squid to decide which ISP you are to be using.

Regards
Henrik

tis 2003-04-22 klockan 13.57 skrev Frank Chibesakunda:
> i have two ISP's i want my users to use either, when one is down the other
> one should start, is they a way squid can do this....
>
> F
> ----- Original Message -----
> From: "Henrik Nordstrom" <hno@squid-cache.org>
> To: "Digmayer, Markus" <Markus.Digmayer@telekom.de>
> Cc: "Squid Users" <squid-users@squid-cache.org>
> Sent: Tuesday, April 22, 2003 1:52 PM
> Subject: Re: AW: AW: AW: [squid-users] Accelerator Mode with two
> differentpor ts
>
>
> > Then you will need
> >
> > 1. Two http_port directives in squid.conf to make Squid accept requests
> > on two different ports, same ports as for your real web servers.
> >
> > 2. "httpd_accel_port virtual", to make Squid remember which port it
> > accepted the request on.
> >
> > 3. "httpd_accel_host www.example.com" (www.example.com should be the
> > official web site name).
> >
> > 4. Enter www.example.com with the IP address of the real web server into
> > /etc/hosts of your Squid server, or use a split DNS providing different
> > information to your Squid than to the rest of the world.
> >
> > 5. Configure your web server with www.example.com as webserver name.
> > This is ServerName in Apache, other web servers have different
> > configuration, some decide automatically based on the request.
> >
> >
> > 1-4 will make Squid accept the request as if they were for the real web
> > servers.
> >
> > 5 will make the web servers respond with correct links.
> >
> >
> > Regards
> > Henrik
> >
> >
> >
> >
> > tis 2003-04-22 klockan 12.53 skrev Digmayer, Markus:
> > > Ok,
> > > i think i understand now. I think your example URL b) is what wie need.
> > > How can i forward the requests to the correct webserver?
> > > Markus
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Henrik Nordstrom [mailto:hno@squid-cache.org]
> > > Gesendet: Dienstag, 22. April 2003 12:36
> > > An: Digmayer, Markus
> > > Cc: Squid Users
> > > Betreff: Re: AW: AW: [squid-users] Accelerator Mode with two different
> > > ports
> > >
> > >
> > > You still needs to decide on what URL the browser SHOULD contact in
> > > order to reach the second web server (i.e. what the links from the first
> > > web server SHOULD look like)
> > >
> > > I cannot help you unless you define what URL namespace you want to use
> > > for your two webservers.
> > >
> > > Regards
> > > Henrik
> > >
> > >
> > > tis 2003-04-22 klockan 11.35 skrev Digmayer, Markus:
> > > > Hi Henrik,
> > > > the users should allways see and use the Ip-address of the Proxy (
> xxx.199.17 ).
> > > > They should never see the IP-Adress if the Webserver. Until now we
> didn't give them DNS-Names.
> > > > I think the second Webserver only presents the real files on port
> 8042, i think the PDFs will be generated by the get request.
> > > > When i try to get them my client ( IE5 ) tries to contact the second
> webserver instance directly (xxx.113.125:8042).
> > > > Maybe these are two different problems?
> > > > What can i do?
> > > > Regards,
> > > > Markus
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Henrik Nordstrom [mailto:hno@squid-cache.org]
> > > > Gesendet: Dienstag, 22. April 2003 10:58
> > > > An: Digmayer, Markus
> > > > Cc: Squid Users
> > > > Betreff: Re: AW: [squid-users] Accelerator Mode with two different
> ports
> > > >
> > > >
> > > > 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
> > --
> > Henrik Nordstrom <hno@squid-cache.org>
> > MARA Systems AB, Sweden
> >
> >

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Tue Apr 22 2003 - 07:39:37 MDT

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