cfillion / middle_squid Goto Github PK
View Code? Open in Web Editor NEWMiddleSquid is a redirector, url mangler and webpage interceptor for the squid HTTP proxy.
License: GNU General Public License v3.0
MiddleSquid is a redirector, url mangler and webpage interceptor for the squid HTTP proxy.
License: GNU General Public License v3.0
I configured the squid so it redirects to yahoo.com when it requests for google.com. However, this line of configuration is just ignored and is not working. Any suggestion?
squid.conf
url_rewrite_program /usr/bin/sh /var/tmp/middle_squid_wrapper.sh start -C /var/tmp/middle_squid_config.rb
middle_squid_config.rb
run lambda {|uri, extras|
redirect_to 'http://www.yahoo.com' if uri.host.end_with? 'google.com'
}
I set up middle_squid and most of the websites work fine.But for some sites like qq.com, it got the following error.How to fix this?
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://127.0.0.1:53426/cc3daea4-a546-43db-b7a6-b61949da2b7a
Zero Sized Reply
Squid did not receive any data for this request.
http://127.0.0.1:53426/cc3daea4-a546-43db-b7a6-b61949da2b7a returns the error below.
Your cache administrator is webmaster.
[MiddleSquid] Errno::ECONNREFUSED
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.