use multiple cache_peer lines, one per port, and then define ACLs
which match on the incoming port.

I've posted an example to a related question to the mailing list a month
or two ago.



Adrian

On Fri, Dec 07, 2007, Mirabello Massimiliano wrote:
> 
> Hi all,
> 
> I have a problem I couldn't solve. I looked for documentation or
> examples but a could not find (or I didn't uderstand) a solution.
> 
> I have an application that send http/https request on different ports of
> my http server. What I need is to proxy a request received on a specific
> port (e.g. 8080) on my frontend server (the one running squid) to a
> specific port (e.g. 9080) of my backend server (eventually the same
> server running squid). The same operation has to be executed for other
> ports for the same backend server or eventually on a different one.
> 
> The following table should be more explicative.
> 
> 
> Squid listening port          backend host    backend port
> -----------------------------------------------------------------
> 8080                                  127.0.0.1               9080
> 8081                                  127.0.0.1               9081
> 8082                                  10.0.0.2                9082
> 8083                                  10.0.0.3                9080
> 
> 
> There's anyone could provide an example to do this?
> I use squid 3.0
> 
> Thank you in advance.
> 
> 
> Massimiliano
> 
> 
> Internet Email Confidentiality Footer
> -----------------------------------------------------------------------------------------------------
> La presente comunicazione, con le informazioni in essa contenute e ogni 
> documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' 
> indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i 
> destinatari/autorizzati siete avvisati che qualsiasi azione, copia, 
> comunicazione, divulgazione o simili basate sul contenuto di tali 
> informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., 
> D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se 
> avete ricevuto questa comunicazione per errore, vi preghiamo di darne 
> immediata notizia al mittente e di distruggere il messaggio originale e ogni 
> file allegato senza farne copia alcuna o riprodurne in alcun modo il 
> contenuto. 
> 
> This e-mail and its attachments are intended for the addressee(s) only and 
> are confidential and/or may contain legally privileged information. If you 
> have received this message by mistake or are not one of the addressees above, 
> you may take no action based on it, and you may not copy or show it to 
> anyone; please reply to this e-mail and point out the error which has 
> occurred. 
> -----------------------------------------------------------------------------------------------------

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -

Reply via email to