Assuming that proxy and apache is on same server.
Open httpd.conf and make sure you have something as follows:
Code:
Listen 127.0.0.1:80
NameVirtualHost 127.0.0.1:80
Now open squid conf and setup as follows:
Code:
http_port 80 # Port of Squid proxy
httpd_accel_host public.IP.address.server # IP address of web server
httpd_accel_port 80 # Port of web server
httpd_accel_single_host on # Forward uncached requests to single host
httpd_accel_with_proxy on #
httpd_accel_uses_host_header off
Add acl as follows:
Code:
acl mydomain dstdomain .yourdomain.com
http_access allow mydomain
Restart both squid and proxy:
Code:
service httpd restart
service squid restart
Test it!