This redirect isn't sensible for Squid...You're redirecting clients to a file on their own hard disk.
You need a URL to redirect them to. It is possible to have Squid serve files itself from its local filesystem, but that's not really the recommended method. It is preferable to serve the files from a small local webserver (thttpd is a good choice for this--or Apache if you already run it for some other reason). I'll leave it as an exercise for the reader to implement having Squid serve the files directly, since it isnt' the Right Way. (Hint: Squid error pages and directory icons are served by Squid from the filesystem just.) Brian Miller wrote: > Please forgive the trivial question, but in searching the mailing list > archives I haven't found how to redirect to a local file. I have been > able to redirect to an existing web page e.g. http://www.google.com, but > not to a local file containing my 'access denied' message. > > Here's my config file: > > logdir /Volumes/WorkDisk/squidGuard/log > dbhome /Volumes/WorkDisk/squidGuard/db > > dest porn { > domainlist adult/domains > urllist adult/urls > } > > acl { > default { > pass !porn all > redirect file://localhost/Volumes/WorkDisk/accessDenied.html > } > } -- Joe Cooper <[EMAIL PROTECTED]> http://www.swelltech.com Web Caching Appliances and Support
