Adam Squids wrote:
hey,
http://paste.lisp.org/display/85718
trying to get domain.com/images/banners5/ to get redirected to my
Apache listening on 127.0.0.1:80.
seems like squidGuard ignores my rew rule.
in my access.log I got -
"access.log:1250765832.877 11 1.2.3.4 TCP_CLIENT_REFRESH_MISS/404
3095 GET http://www.domain.com/images/banners5/adamCDN.php -
FIRST_UP_PARENT/origin.domain.com text/html"
in my store.log I got -
"store.log:1250765832.878 SWAPOUT 00 000028F9
BA3524A6ECC9C9757C44504E865F1418 200 1250765832 -1 1250865832
x-squid-internal/vary -1/82 GET http://127.0.0.1/images/banners5/
adamCDN.php"
do I need to set 127.0.0.1 80 as a "parent" cache peer or something?
or as ACL ?
using Squid 2.7
Thanks,
Adam
You need to have squidguard redirecting to an IP or domain name which
the browsers being redirected can visit. 127.0.0.1 is private IP which
means "me" to every machine in existence. Browsers bing told to go there
will attempt to connect to their own port 80.
The to answer art 2 of your Q. Yes to run a apache on 127.0.0.1 (squid
box) you will need Squid setup as reverse-proxy with it as the
cache_peer IP.
http://wiki.squid-cache.org/SquidFaq/ReverseProxy
Amos
--
Please be using
Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
Current Beta Squid 3.1.0.13