hroute is a simple HTTP proxy based on tproxy.
Install:
pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt
pip install hroute
Usage:
Create a configuration file in /var/spool/hroute (default path) or any
folder 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 3
and go on `http://127.0.0.1:5000/gunicorn http://127.0.0.1:5000/gunicorn. You should see the gunicorn.org website.
Features:
- location rewriting
- links rewriting to handle proxy / paths
- simple configuration
- vhosts support
- logging (coming)
- authentification (coming)
Requirements:
- Python
- gevent
- setproctitle
- tproxy
- lxml
- http-parser
Comments not found