Reverse proxy quick-start

    Prerequisites:

    • Basic terminal / command line skills
    • A running backend process to proxy to

    There are two easy ways to get a quick reverse proxy up and running. We’ll show you two equivalent ways to do the same thing.

    This tutorial assumes you have a backend HTTP service running on .

    If you don’t have permission to bind to low ports, you can proxy from a higher port:

    Then make a request to localhost (or whatever address you specified in ) to see it working!

    Caddyfile

    In the current working directory, create a file called with these contents:

    You can then make a request to https://localhost to see it working!

    It’s easy to change the proxy’s address:

    Make sure to Caddy (or stop and start it again) when you change the Caddyfile.

    There is a lot more you can do with the directive.