nginx 配置简单反向代理

假设端口号是 3000

 

server {
  listen 80;
  server_name your.domain;
  location / {
    proxy_pass              http://127.0.0.1:3000/;
    proxy_set_header        Host $host;
  }
}

 

posted @ 2019-10-10 19:02 savokiss 阅读(...) 评论(...) 编辑 收藏