内容目录
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
留言
后续:https 证书ngnix配置 https://blog.chenglai.net/archives/73