fre 2003-07-25 klockan 12.23 skrev Matthias Weigel:
> My problem is, the backend server uses port 7777. It cannot be chaned to
> use port 80 (limitation of the backend servers software).
>
> 10.113.209.1 = squid3 accel, listening on port 7777
> 10.113.209.219 = backend server, listening on port 7777
>
> Extracts from my squid.conf:
> https_port 7777 cert=server.crt key=server.key
> defaultsite=official.site.name protocol=http
> cache_peer 10.113.209.219 parent 7777 0 originserver name=tviprod
> acl tviprod dstdomain official.site.name
> cache_peer_access tviprod allow tviprod
> cache_peer_access tviprod deny all
>
> From /etc/hosts on accel:
> 10.113.209.219 tviprod
/etc/hosts is not needed when using the cache_peer based request
forwarding, but does not hurt either (not used by Squid).
> The Errormessage:
> 2003/07/25 10:52:02| TCP connection to 10.113.209.219/7777 failed
> 2003/07/25 10:52:02| TCP connection to 10.113.209.219/7777 failed
>
> A tcpdump shows me, that squid3 actually tried to connect on port 80
> instead of 7777
Then register a bug report. It is supposed to connect to the port given
in your cache_peer directive.
Unless.. there is one thing. Make sure you are not using an
always_direct directive as this bypasses the cache_peer.
In any case register a bug report. The port should still be 7777 even if
you use always_direct.
> Is this a bug or am i doing something wrong?
>From what you have told it looks like a bug. Have not verified your
findings yet (will do when there is a bug report).
> Similar setups on squid2.4 work fine when using the follwoing
> directives, but they seem to have gone in squid3.
> http_accel_with_proxy on
> http_accel_uses_host_header on
Correct. These directives became obsolete by the addition of accelerator
related options to http_port.
Regards
Henrik
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org Please consult the Squid FAQ and other available documentation before asking Squid questions, and use the squid-users mailing-list when no answer can be found. Private support questions is only answered for a fee or as part of a commercial Squid support contract. If you need commercial Squid support or cost effective Squid and firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, info@marasystems.comReceived on Fri Jul 25 2003 - 05:58:32 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:16 MST