Hi Alister, Thanx for the links and the example.
This link is very useful too: [] http://ftp.ucr.ac.cr/solrhe/chap28sec231.html I have it working now with good results. Regards, -William El mar, 30-03-2004 a las 16:35, Alister escribió: > On 29 Mar 2004 15:28:38 -0500 > William Lovaton <[EMAIL PROTECTED]> wrote: > > > Hi Alister, > > > > This is exactly what I am trying to do now... but I'm afraid that I am > > a little unexperienced with squid. > > > > I managed to make it run in my home in "httpd-accelerator" mode but I > > still have some problems. > > > > Could you give me your squid configuration file?? or at least tell me > > how to set the needed properties. > > > > In my home it is working this way: squid in port 80 and apache in port > > 8080 and the browser is able to load the pages through squid, but > > apache is still loggging the static content in the access log file > > which shouldn't happen because static requests aren't supposed to > > reach the web server. right?? > > It should still log some requests, just not multiple ones for the same static > file, at least not without a time-gap between them. Beyond this, I'd have > to say, RTFM > > These two originally helped me a lot. > http://squid.visolve.com/squid/squid24s1/httpd_accelerator.htm > http://www.squid-cache.org/Doc/FAQ/FAQ-20.html > > > > Here's a suitably munged config file from my server: > > ### /etc/squid/squid.conf > # we listen on ip:port > http_port 123.123.123.123:80 > > # HTTPD-ACCELERATOR OPTIONS > # ----------------------------------------------------------------------------- > httpd_accel_port 80 > ## where we request the pages from > httpd_accel_host 123.123.123.124 > > httpd_accel_single_host on > httpd_accel_uses_host_header on > > hierarchy_stoplist cgi-bin ? > acl QUERY urlpath_regex cgi-bin \? > > #Default: > # cache_mem 8 MB > cache_mem 16 MB > httpd_accel_with_proxy off > > # TAG: acl > #Defining an Access List > #Recommended minimum configuration: > acl all src 0.0.0.0/0.0.0.0 > acl acceleratedHost dst 123.123.123.124/255.255.255.255 > acl acceleratedPost port 80 > > acl DSUKoffice src 155.155.155.155/255.255.255.255 > acl manager proto cache_object > acl localhost src 127.0.0.1/255.255.255.255 > acl SSL_ports port 443 563 > acl Safe_ports port 80# http > #acl Safe_ports port 21# ftp > #acl Safe_ports port 443 563# https, snews > #acl Safe_ports port 70# gopher > #acl Safe_ports port 210# wais > acl Safe_ports port 1025-65535# unregistered ports > acl Safe_ports port 280# http-mgmt > #acl Safe_ports port 488# gss-http > #acl Safe_ports port 591# filemaker > #acl Safe_ports port 777# multiling http > acl CONNECT method CONNECT > > # TAG: http_access > #Allowing or Denying access based on defined access lists > #Recommended minimum configuration: > # Only allow cachemgr access from localhost or DSUK office > #http_access allow manager localhost > #http_access allow manager DSUKoffice > #http_access deny manager > # Deny requests to unknown ports > http_access deny !Safe_ports > # Deny CONNECT to other than SSL ports > http_access deny CONNECT !SSL_ports > # > # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS > # > # And finally deny all other access to this proxy > # allow requests to the right host and port > #http_access allow acceleratedHost acceleratedPost > #http_access deny all > > # make all .php/.php3's uncachable: > acl PHP url_regex .php$ > acl PHP3 url_regex .php3$ > no_cache deny PHP PHP3 QUERY acceleratedHost acceleratedPost DSUKoffice \ > manager localhost SSL_ports Safe_ports CONNECT > > # TAG: ie_refreshon|off > #Microsoft Internet Explorer up until version 5.5 Service > #Pack 1 has an issue with transparent proxies, wherein it > #is impossible to force a refresh. Turning this on provides > #a partial fix to the problem > ie_refresh off -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php