Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

So that

$ GET http://localhost:8000/bar

would fetch

Any clues?

share|improve this question

2 Answers 2


# socat TCP-LISTEN:80,reuseaddr,fork,su=nobody

(from and

# socat -vv OPENSSL-LISTEN:443,cert=cert.pem,cafile=cacert.pem,cert=cert.key, \
reuseaddr,fork TCP4:


share|improve this answer

Theres a node module for that: Supports command line arguments and a config file for more complex situations.

Only downside with kiss-proxy is that it looks slightly dated and may not run on newer versions of node.

share|improve this answer
could you give more detail than a link ? – Archemar Nov 18 at 9:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.