View Full Version : Squid
orcun
November 28th, 2008, 11:50
can i use squid with apache on a same server for a better performance for my web page(php+mysql)??
danger@
November 28th, 2008, 11:54
if you are looking for reverse-proxy, check out varnish (http://varnish.projects.linpro.no/).
I have no experiences with squid, but speaking of varnish, yes you can run it on the same server even IP as web server. You just have to configure your web server to listen on different port.
EliasMandouvalos
November 29th, 2008, 20:19
Of course you can. You can ckeck out the fine howto on the following link:
http://www.visolve.com/squid/whitepapers/reverseproxy.php
But it will make little sense to use such a configuration with squid and apache running on the same machine. It makes great sense if you have a cluster of webservers (two or more) behind the proxy server, in which case, squid will load balance the incoming requests...
paulfrottawa
February 18th, 2009, 03:48
can i use squid with apache on a same server for a better performance for my web page(php+mysql)??
I'm just starting into squid now after reconfiguring my network for it. If the directions in squid said that's how to use it I'd be there.
Mel_Flynn
February 18th, 2009, 17:03
can i use squid with apache on a same server for a better performance for my web page(php+mysql)??
Generally, no. You can use squid and apache on the same machine as a reverse proxy. The better performance part generally doesn't work:
Both squid and apache fight for network, cpu and memory resources on the machine, most notably the IO cache.
The bottleneck in serving dynamic requests with php/mysql is never the webserver
Webserver delivers static content faster then a (reverse) proxy
You would do better to analyze your queries.
paulfrottawa
March 1st, 2009, 17:13
OK
I have a machine called proxy running three jails. ns, mail , www (squid) using the jail applications example. Everything is working and I'm using the proxy for my network browsers.
My setup is cable modem >> proxy ip=192.168.0.1, plus jails ip=192.168.0.3-5 Then out to 192.168.0.2 "IN" >> dlink router out >> My network where ip=192.168.2.136 sits and has three alaises 192.168.2.3-5. 5 being my test web server.
How would I connect the world through my proxy for the test web content?
Thanks in advance.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.