RE: [squid-users] Apache 301 redirects working with squid

From: Drew Wrobel <phoenix1972_at_hotmail.com>
Date: Fri, 8 Jan 2010 09:20:15 -0500

I have the redirects working with squid and apache.

Of course now I have a new wrinkle.

Here are the rules I currently have defined:

http_port 80 accel vport
cache_peer 172.21.174.78 parent 80 0 no-query originserver round-robin login=PASS
acl mainSite dstdomain www.company.com
http_access allow mainSite
cache_peer_access 172.21.174.78 allow mainSite
cache_peer_access 172.21.174.78 deny all
acl otherSites dstdomain .company.com
deny_info http://www.company.com/ otherSites
http_access deny otherSites
http_access deny all

I have about 70+ addtional domains that I need to redirect them all to the default of www.company.com

The domains are anything from 1800company.com, 1-800-comany.com, various .net/.biz/.org/.info and other
combinations.

It there a simple/easy acl that I can use as a catch all, if you will, for anything that isn't www.company.com to have it
redirected to www.company.com?
                                               
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/196390709/direct/01/
Received on Fri Jan 08 2010 - 14:20:23 MST

This archive was generated by hypermail 2.2.0 : Sun Jan 10 2010 - 12:00:03 MST