I'm following the directions here:
http://wiki.squid-cache.org/SquidFaq/ReverseProxy?action=print
for setting up a reverse proxy, however they don't seem to be working.
I'm running 2.5.STABLE14 on Fedora Core 5.
The very first instruction says to add:
http_port 80 defaultsite=your.main.website
when I configure my settings & run squid -z, I get:
FATAL: Bungled squid.conf line 53: http_port 81 defaultsite=10.10.10.107
If I change that to read only:
http_port 81
it accepts it.
However, the second instruction on that page:
cache_peer ip.of.webserver 80 0 no-query originserver
also fails with:
FATAL: Bungled squid.conf line 176: cache_peer 10.10.10.107 80 0
no-query originserver
so what gives?? This is the default install of squid from fedora. Am
I missing something or what?
Thank you.
Mike
On 1/9/07, WebHead <webhead74@gmail.com> wrote:
> Hi -
>
> I'm trying to figure out whether I'm even going down the right path
> here - whether Squid is the right tool for the job.
>
> I'm writing a PHP web app that queries data from one of our databases.
> One bit of information returned by the query is the url to an image
> file, such as http://192.168.99.2/images/foo.jpg . The images are
> stored on any of three servers, at three separate physical locations.
> Each of the locations is connected back to my office via T1s. The web
> server, in the DMZ port on my firewall, is at my office.
>
> I was thinking of putting a squid server in the dmz - either on it's
> own box, or on the box I'm running the PHP app on, to pull those
> images, cache them & serve them to clients accessing the site. The
> problem is that none of the servers hosting the images are internet
> accessible, nor will they ever be. I also want to mimize traffic
> across the T1s.
>
> Is squid capable of doing this? If so, can any of you provide
> information on how to go about getting started? I've never dealt with
> squid before & haven't really found any documentation on my own which
> tells me how to configure this sort of setup. Everything I've read
> has been about configuring a proxy for people browsing the web.
>
> If there's a better way to do this, I'd be open to hearing about it too.
>
> Many thanks!
> Mike
>
Received on Tue Jan 09 2007 - 14:29:31 MST
This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST