View Single Post

  #4 (permalink)  
Old 05-03-2008, 08:55 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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!
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote