月度归档: 2023 年 4 月

  • Nginx反向代理配置模板

    每次配置nginx反向代理时,都要查一次资料,现在记录在这里,备忘、备查。

    server {
        listen 80;
        server_name www.example.com;
        location /{
            proxy_set_header Host $host;
            proxy_pass http://127.0.0.1:8080;
        }
    }