I originally intended this playground to be a walkthrough of Nginx’s primary and most often used capabilities (like the Apache APISIX playground). But that has to wait.

So here’s a sandboxed instance of Nginx that you can play with. I tried using it as a proxy, as shown in the example, and it works.

Edit your Nginx configration file:

http {
    server {
        listen 80;

        location /ip {
            proxy_pass http://httpbin.org:80;
        }
    }
}

Use curl to test your configuration:

curl "http://127.0.0.1:80/ip"

This playground is powered by Codapi. A huge thank you to its creator, Anton Zhiyanov.

You might also like: