httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Cotter <>
Subject [users@httpd] proxy chaining to squid
Date Sun, 31 Jan 2010 11:33:01 GMT
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.

I have something like this:

NameVirtualHost *:80
Listen 80
<VirtualHost *:80>
ProxyPass / http://localhost:3128/
ProxyPassReverse / http://localhost:3128/
ProxyVia on

<VirtualHost *:80>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

This does not work I get an error when I set my browser to use as proxy what I want is for apache to chain to squid.

GET /urlrequested.html HTTP/1.1

Host: localhost:3128
Invalid Request

Any help on what I need to do to get this working appreciated.


Host: localhost:3128

View raw message