Hello all!
I am trying to set up redirects from denied domains to our local web-server page. Redirect works, but he don't show pictures from new website, don't use js scripts from new site and etc
For first time I used such redirector:
#!/usr/bin/perl
$|=1;
while (<>) {
s@http://sex.com@http://mywebsrv/www/workblock\n@;
print;
}
This redirect works but all images (and swf- js- files) on our workblock page (like http://mywebsrv/www/workblock/dem.jpg) it try to GET from sex.com - in logs we see GET http://sex.com/dem.jpg or http://sex.com/workblock/dem.jpg :(
Why so? What I do wrong?
After that I install squidGuard (both configs are below) but problem is still here :(
Thank you for any solution or help.
My /etc/squid/squidGuard.conf:
dbhome /var/lib/squidguard/db
logdir /var/log/squid
dest redirector {
domainlist redirector/domains
urllist redirector/urls
}
acl {
default {
pass !redirector all
redirect http://mywebsrv/www/workblock
}
}
My /etc/squid3/squid.conf:
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
redirect_children 3
redirector_bypass on
cache_effective_user proxy
acl SNBC src 10.250.16.0/24
http_access allow SNBC
http_port 10.250.16.222:3128
cache_peer 10.80.20.222 parent 3128 0 no-query default
never_direct allow all
cache_mgr na_at_n.com
dns_nameservers 10.250.16.10 10.250.1.13
Some like such my trouble described here: http://www.mail-archive.com/squid-users@squid-cache.org/msg03292.html (but no solution)
With best regards, Albert
Received on Thu Jun 23 2011 - 05:15:38 MDT
This archive was generated by hypermail 2.2.0 : Fri Jun 24 2011 - 12:00:03 MDT