Re: [squid-users] Reverse-proxy for site on Google AppEngine

From: Eliezer Croitoru <>
Date: Fri, 01 Jun 2012 23:27:43 +0300

On 01/06/2012 01:23, Will wrote:
> Hi,
> I'm setting up a squid 3.1 reverse proxy server (accelerator) for my
> website on Google AppEngine. The squid.conf looks like this,
> http_port 80 accel ignore-cc
> cache_peer parent 80 0 no-query originserver
> login=PASS name=gaeAccel
> acl gae dstdomain
> http_access allow gae
> http_access deny all
> cache_peer_access gaeAccel allow gae
> cache_peer_access gaeAccel deny all
> Squid redirects me to the Google's search home page.
> As soon as I changed in cache_peer to anything
> else, such as, it worked. I've tried substituting
> with different sites on Google AppEngine, all got
> redirected to Google's search page.
> Any idea?
> It's on Ubuntu Server 12.04, Squid 3.1.
> Thanks in advance,
> Will

hey will

i dont know exactly how the appspot works but it seems that google uses
virtual domains on the same ip and response only to requests of domains
that are hosted on appspot.

what you are doing with a cache_peer is throwing the requested domain to
the ip of the cache_peer.

so the request that google server "" gets is a request
for "" and since google is not hosting it the basic
rule is to redirect into

to make it work change the http_port the option to
"" and add "no-vhost"

on the http_access i'm not sure but i think you should add also the
"" domain to the allowed such as:

acl gae dstdomain

it works like a charm!


Eliezer Croitoru
IT consulting for Nonprofit organizations
eliezer <at>
Received on Fri Jun 01 2012 - 20:27:54 MDT

This archive was generated by hypermail 2.2.0 : Sat Jun 02 2012 - 12:00:02 MDT