[squid-users] reverse proxy, problem with conf

From: Alexis Krier <alexis.krier_at_laposte.net>
Date: Thu, 22 Dec 2011 09:46:53 +0100

Hello all, I have a little problem to test the ability of squid to
reverse proxy.

let's say I have to site for example: free.fr and laposte.net (this
sites are real www sites)

I want that client hit first squid and then go to free.fr or laposte.net:

Client -----> SQUID ------> free.fr

so here is my conf on my windows desktop test machine:
C:\WINDOWS\system32\drivers\etc\hosts: localhost free.fr laposte.net

http_port 80 accel defaultsite=google.fr

cache_peer parent 80 0 no-query originserver name=server_1
acl sites_server_1 dstdomain free.fr
cache_peer_access server_1 allow sites_server_1

cache_peer parent 80 0 no-query originserver name=server_2
acl sites_server_2 dstdomain laposte.net
cache_peer_access server_2 allow sites_server_2

the Test case:
When I set free.fr in my web browser I am redirected to squid but I'm
forwarded to google.fr and not free.fr as excpected
Same thing with laposte.net, where am I wrong?

Thank you for any help

Received on Thu Dec 22 2011 - 08:46:59 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 22 2011 - 12:00:03 MST