内容目录

Xftp连接服务器

/etc/nginx/conf.d 文件夹 添加配置文件 chenglai_iot.conf

内容:

server {
    listen 80;
    server_name iot.chenglai.net;

    location / {
        proxy_pass http://localhost:9090;  # 更新为新的端口号
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

重启nginx

sudo systemctl restart nginx
最后修改日期: 2024 年 9 月 28 日

作者

留言

后续:https 证书ngnix配置 https://blog.chenglai.net/archives/73

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。