Search squid archive

reverse proxy, problem with conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
                 |
                  -------->laposte.net

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

squid.conf:
http_port 80 accel defaultsite=google.fr

cache_peer 212.27.48.10 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 195.154.98.97 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

Alexis




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux