7
1
There is a nice trick to instantly serve contents of a current working directory by HTTP locally:
$ python -m SimpleHTTPServer
This command launches HTTP server at *:8000, serving $PWD contents.
I'm looking for something similar, but for setting up a reverse-proxy.
Something like this:
$ instant-reverse-http-proxy --listen-on 'http://localhost:8000/' --proxy-to 'https://example.com/path'`
So that
$ GET http://localhost:8000/bar
would fetch https://example.com/path/bar
.
Any clues?
1The last link is dead, please correct for future comers – Ahmed Essam – 2017-12-19T15:56:30.170