Re: proxy chaining to squid
Brian Mearns <mearns.b <at> gmail.com>
2010-02-01 11:29:31 GMT
On Mon, Feb 1, 2010 at 5:33 AM, Emmanuel Bailleul
<Emmanuel.Bailleul <at> telindus.fr> wrote:
>> -----Message d'origine-----
>> De : David Cotter [mailto:davidcotter <at> gmail.com]
>> Envoyé : lundi 1 février 2010 11:30
>> À : users <at> httpd.apache.org
>> Objet : Re: [users <at> httpd] proxy chaining to squid
>> n Mon, Feb 1, 2010 at 9:08 AM, Martin Barry <marty <at> supine.com> wrote:
>> > $quoted_author = "David Cotter" ;
>> >> I have two virtual hosts and a squid proxy running. I want to be able
>> to use
>> >> the squid proxy on port 80 though it is running on 3128.
>> > Why? If you describe a bit more exactly what you are trying to achieve
>> > would help us help you.
>> >> This does not work I get an error when I set my browser to use
>> >> 18.104.22.168:80 as proxy what I want is for apache to chain to squid.
>> > You almost certainly don't want to configure your browser to use Apache
>> as a
>> > generic proxy.
>> >> GET /urlrequested.html HTTP/1.1
>> >> Host: localhost:3128
>> >> ...
>> >> Invalid Request
>> > Well, it's an invalid request. Port numbers don't belong in host
>> I have a server that runs a web site. I also want that server to host
>> a squid http proxy for a different project - but squid has to be
>> listening on port 80 and so does the web server. So What I am trying
>> do do is send the request appropriately based on domain name. If is is
>> xyz.com then send it to the web site otherwise chain it to squid.
> My previous replies have been rejected because tagged as spam ... hope this time it gets through ...
> If you need your Apache reverse proxy as a frontend, you should have a look at
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote as a forward proxy would be more
effective than a reverse, the latter only forwards requests to configured origin servers.
> Last, but it seems ok in your config, this "forward proxy" setup should be used in the default vhost (the
first one listed).
Do you want a forward proxy or reverse proxy? Based on your config, it
looks like you have it set up for reverse proxy. But if you're
configuring your browser to know about the proxy, then it's a forward
proxy. Not sure if this is the specific problem you're seeing, but I
think it will be eventually.
Hope that helps,
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
" from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org