louis gonzales wrote:
> Amos,
> Here's a challenge, I can't find the reason why the Header rewrite is
> not happening? My configuration has only 1 "web
> server"(unified1.abstract.net, IP:192.168.0.10) behind the reverse
> proxy server(proxy1.abstract.net, IP: 192.168.0.20)
>
> What I want the reverse proxy server to do is:
> a) not cache anything, essentially just stream the web server content
> straight to the client
== "cache deny all"
> b) *suppose* the Header needs to be rewritten, but I am assuming this
> get's done by virtue of using the following lines in squid.conf:
>
> ###
> cache_peer unified1.abstract.net parent 80 0 no-query originserver
> forceddomain=unified1.abstract.net name=myAccel
>
Passes requests to unified1.abstract.net:80 and forces change of Host:
header to "Host: unified1.abstract.net" so machine at
unified1.abstract.net can run under the belief that it is serving that
domain.
> ###
> acl FMS dstdomain unified1.abstract.net
NP: this is the problem...
*client browsers* will never ask Squid for this private domain
unified1.abstract.net.
They will only ask Squid for the public domain(s) which resolve to
192.168.0.20 (squid IP).
Amos
> http_access allow FMS
> cache_peer_access myAccel allow FMS
>
> ------------------ Any ideas??????? Below is some logging
> ---------------------- THNKs
>
> The request GET http://proxy1:80/configMultiSiteConfigRequest is
> ALLOWED, because it matched 'PROXY1'
> 2009/04/07 04:39:04| clientStoreURLRewriteDone:
> 'http://proxy1.abstract.net/configMultiSiteConfigRequest' result=NULL
> 2009/04/07 04:39:04| WARNING: Forwarding loop detected for:
> Client: 192.168.0.20 http_port: 192.168.0.20:80
> GET http://proxy1.abstract.net/configMultiSiteConfigRequest HTTP/1.0
>
> User-Agent: FMS-FCC/1.3 (bd:20081014) Java/1.5.0_11
>
> Host: proxy1.abstract.net
>
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
>
> Via: 1.1 proxy1:80 (squid/2.7.STABLE6), 1.0 proxy1:80 (squid/2.7.STABLE6)
>
> X-Forwarded-For: 192.168.0.20, 192.168.0.20
>
> Cache-Control: max-age=259200
>
> Connection: keep-alive
> 2009/04/07 04:39:04| clientProcessRequest2: storeGet() MISS
> 2009/04/07 04:39:04| storeCreateEntry:
> 'http://proxy1.abstract.net/configMultiSiteConfigRequest'
> 2009/04/07 04:39:04| new_MemObject: returning 00F818D8
> 2009/04/07 04:39:04| new_StoreEntry: returning 00F81890
> 2009/04/07 04:39:04| storeKeyPrivate: GET
> http://proxy1.abstract.net/configMultiSiteConfigRequest
> 2009/04/07 04:39:04| storeHashInsert: Inserting Entry 00F81890 key
> '3D8B98FA9C7FBCC0711DCF9AB7173967'
> 2009/04/07 04:39:04| storeReleaseRequest: '3D8B98FA9C7FBCC0711DCF9AB7173967'
> 2009/04/07 04:39:04| storeLockObject:
> (C:\work\SNT-2.7\src\store_client.c:122): key
> '3D8B98FA9C7FBCC0711DCF9AB7173967' count=2
> 2009/04/07 04:39:04| storeClientCopy:
> 3D8B98FA9C7FBCC0711DCF9AB7173967, seen 0, want 0, size 4096, cb
> 0041D44A, cbdata 00F80E80
> 2009/04/07 04:39:04| cbdataLock: 00F80E80
> 2009/04/07 04:39:04| cbdataLock: 00F81A78
> 2009/04/07 04:39:04| storeClientCopy2: 3D8B98FA9C7FBCC0711DCF9AB7173967
> 2009/04/07 04:39:04| storeClientCopy3: Waiting for more
> 2009/04/07 04:39:04| cbdataUnlock: 00F81A78
> 2009/04/07 04:39:04| storeLockObject:
> (C:\work\SNT-2.7\src\errorpage.c:316): key
> '3D8B98FA9C7FBCC0711DCF9AB7173967' count=3
> 2009/04/07 04:39:04| errorConvert: %U -->
> 'http://proxy1.abstract.net/configMultiSiteConfigRequest'
> 2009/04/07 04:39:04| errorConvert: %U -->
> 'http://proxy1.abstract.net/configMultiSiteConfigRequest'
> 2009/04/07 04:39:04| errorConvert: %w --> 'webmaster'
> 2009/04/07 04:39:04| errorConvert: %w --> 'webmaster'
> 2009/04/07 04:39:04| errorConvert: %T --> 'Tue, 07 Apr 2009 08:39:04 GMT'
> 2009/04/07 04:39:04| errorConvert: %h --> 'proxy1'
> 2009/04/07 04:39:04| errorConvert: %s --> 'squid/2.7.STABLE6'
> 2009/04/07 04:39:04| errorConvert: %S --> '
> <BR clear="all">
> <HR noshade size="1px">
> <ADDRESS>
> Generated Tue, 07 Apr 2009 08:39:04 GMT by proxy1 (squid/2.7.STABLE6)
> </ADDRESS>
> </BODY></HTML>
> '
> 2009/04/07 04:39:04| storeExpireNow: '3D8B98FA9C7FBCC0711DCF9AB7173967'
> 2009/04/07 04:39:04| InvokeHandlers: 3D8B98FA9C7FBCC0711DCF9AB7173967
> 2009/04/07 04:39:04| InvokeHandlers: checking client #0
> 2009/04/07 04:39:04| cbdataLock: 00F81A78
> 2009/04/07 04:39:04| storeClientCopy2: 3D8B98FA9C7FBCC0711DCF9AB7173967
> 2009/04/07 04:39:04| storeClientCopy3: Copying from memory
> 2009/04/07 04:39:04| cbdataValid: 00F80E80
> 2009/04/07 04:39:04| clientBuildReplyHeader: Error, don't keep-alive
> 2009/04/07 04:39:04| clientSendHeaders: 181 bytes of headers
> 2009/04/07 04:39:04| The reply for GET
> http://proxy1.abstract.net/configMultiSiteConfigRequest is ALLOWED,
> because it matched 'PROXY1'
> 2009/04/07 04:39:04| cbdataLock: 00F80E80
> 2009/04/07 04:39:04| cbdataUnlock: 00F80E80
> 2009/04/07 04:39:04| cbdataUnlock: 00F81A78
> 2009/04/07 04:39:04| storeComplete: '3D8B98FA9C7FBCC0711DCF9AB7173967'
> 2009/04/07 04:39:04| storeEntryValidLength: Checking
> '3D8B98FA9C7FBCC0711DCF9AB7173967'
> 2009/04/07 04:39:04| InvokeHandlers: 3D8B98FA9C7FBCC0711DCF9AB7173967
> 2009/04/07 04:39:04| InvokeHandlers: checking client #0
> 2009/04/07 04:39:04| storeUnlockObject:
> (C:\work\SNT-2.7\src\errorpage.c:331): key
> '3D8B98FA9C7FBCC0711DCF9AB7173967' count=2
>
<snip earlier discussions about http_port>
Amos
-- Please be using Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13 Current Beta Squid 3.1.0.6Received on Tue Apr 07 2009 - 12:17:37 MDT
This archive was generated by hypermail 2.2.0 : Tue Apr 07 2009 - 12:00:02 MDT