Coder Social home page Coder Social logo

cfillion / middle_squid Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 148 KB

MiddleSquid is a redirector, url mangler and webpage interceptor for the squid HTTP proxy.

License: GNU General Public License v3.0

Ruby 99.88% Shell 0.12%
redirector squid squid-proxy url-mangler webpage-interceptor

middle_squid's People

Contributors

cfillion avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

middle_squid's Issues

url_rewrite_program in squid doesn't work

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'
}

some websites dont work with middle squid

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.