hroute

HTTP router
Download

hroute Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Benoit Chesneau
  • Publisher web site:
  • http://code.google.com/u/bchesneau/

hroute Tags


hroute Description

HTTP router hroute is a simple HTTP proxy based on tproxy.Install: pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt pip install hrouteUsage:Create a configuration file in /var/spool/hroute (default path) or anyfolder you want:: { "all": { "routes": { "/local": { "remote": "127.0.0.1:8000" }, "/google": { "remote": "google.com:80" }, "/gunicorn": { "remote": "gunicorn.org:80", "rewrite_response": true }, } } }then launch hroute:: hroute -s /var/spool/hroute -w 3and go on `http://127.0.0.1:5000/gunicorn http://127.0.0.1:5000/gunicorn. You should see the gunicorn.org website.


hroute Related Software