[squid-users] Squid as reverse proxy for two or more webs

Sticher, Jascha jascha.sticher at tds.fujitsu.com
Fri Aug 10 13:42:49 UTC 2018


> acl ticket_acl dstdomain .MYDOMAIN.lan
This matches *.mydomain.lan - php.mydomain.lan as well as ticket.mydomain.lan

As the configuration is used top-to-bottom, the first of the cache_peers will be used (as only one parent is used).

Use more specific ACLs to mitigate this:

acl ticket_acl dstdomain ticket.MYDOMAIN.lan
acl php_acl dstdomain php.MYDOMAIN.lan

Kind regards,

-----Urspr√ľngliche Nachricht-----
Von: squid-users <squid-users-bounces at lists.squid-cache.org> Im Auftrag von erdosain9
Gesendet: Freitag, 10. August 2018 15:15
An: squid-users at lists.squid-cache.org
Betreff: [squid-users] Squid as reverse proxy for two or more webs

Hi to all.
I was reading several tutorials and I can not find what I'm doing wrong.
I want to use squid to redirect to these two sites that are both within my

In my internal dns I have declared both servers, with their corresponding
ips, also squid.

reverse.mydomain.lan (SQUID)


In addition to the internal DNS, I have the / etc / hosts configured with
these values:
[root at squidReverse ~]# cat /etc/hosts   localhost localhost.localdomain localhost4
#::1         localhost localhost.localdomain localhost6
localhost6.localdomain6  reverse.mydomain.lan ticket.mydomain.lan php.mydomain.lan

This is the configuration of the squid referring to the reverse proxy:

http_port accel vhost

cache_peer parent 80 0 proxy-only name=ticket
cache_peer parent 80 0 proxy-only name=php

acl ticket_acl dstdomain .MYDOMAIN.lan
http_access allow ticket_acl
cache_peer_access ticket allow ticket_acl

acl php_acl dstdomain .MYDOMAIN.lan
http_access allow php_acl
cache_peer_access php allow php_acl

With this config when i go to reverse.mydomain.lan (from a web browser) i
get the ticket web, but how i can go to the second web?? php web??

I dont get it. if i go to ticket.reverse.mydomain.lan i dont nothing, It
does not even come to squid, neither with php.reverse.mydomian.lan

Thanks to all.

Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
squid-users mailing list
squid-users at lists.squid-cache.org

More information about the squid-users mailing list