Search squid archive

Apache 301 redirects working with squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I tried looking at the squid documentation and the board but I didn't find anything.

As
part of my Apache server configured, I have a mod_rewrite rule setup to
do a 301 redirect for any URL that doesn't start with www.company.com.

This
was at the request of some end-users and because there are about 30 or
do domains that we have that all server up the same content.

The 301 redirect works fine with apache.  I go to www-test.company.com and I get redirected to www.company.com as I expected.

Now
I need to get the 301 redirect to work with our squid caching servers. 
If I go to www-test.pepboys.com, I do not get redirected like I would
going directly through Apache.

Not sure what I need to change in the configuration to get the 301 redirects to work.

Here
the configuration from our non-production squid server (the only
difference between production and non-production is the number of
cache_peer entries):

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl CONNECT method CONNECT

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/cache/squid
http_port 80 accel vport
cache_peer 172.21.174.78 parent 80 0 no-query originserver round-robin login=PASS
acl webserver dst 172.21.174.78
http_access allow webserver
http_access allow all
miss_access allow webserver
miss_access allow all
http_access deny all

icp_access deny all

forwarded_for off

follow_x_forwarded_for allow all
acl_uses_indirect_client on
delay_pool_uses_indirect_client on
log_uses_indirect_client on

logformat
combined %{Host}>h %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs
%<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /var/log/squid/access.log combined
collapsed_forwarding on
vary_ignore_expire on

cache_effective_user squid
cache_store_log none
client_db off
cache_mem  512 MB
cache_dir ufs /var/cache/squid 3000 10 10
 		 	   		   		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux