Making your own web debugging proxy

Prompted in a hacker news thread, I’ve documented one of the ways I use nginx, a battle-tested production ready reverse proxy, as a local testing proxy.

I decided to begin using nginx as a local debugging proxy because none of the other testing proxies worked to my liking. They all had good features, but none had all of my desired features. A lot of more mature proxies just didn’t work when I tried them. Any functionality is possible when nginx is your proxy, and it is easy to set up. This blog post gives one example of what is possible with very basic tinkering.

In this post, we will build a local proxy that will log some basic info about all HTTP requests made by your computer to a log file.

installing openresty

Openresty is just nginx with the added ability to write

Original URL:

Original article

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: