Mac why localhost redirect to ip address

broken image
broken image

(You can use it in production if your requirements are simple.) Caddyfile The reverse-proxy command is intended for quick and easy reverse proxies.

broken image

To start a plaintext HTTP proxy from port 2080 to port 9000 on your machine: caddy reverse-proxy -from :2080 -to :9000 You can get a simple reverse proxy running without a config file, or you can use a config file for more flexibility and control. These commands are for Linux, but the same principles apply to other operating systems. This tutorial assumes that you have a backend HTTP service running at 127.0.0.1:9000. This guide will show you how to get a production-ready reverse proxy with or without HTTPS up and running quickly.

broken image