MENU

Nginx conf

• August 8, 2018 • Server阅读设置

server{
    listen 80;
    server_name ice.imemm.com; #绑定域名
    index index.htm index.html index.php; #默认文件
    root /home/ice; #网站根目录
    error_page 404 /404.html;
}
upstream ice {
      server 127.0.0.1:3000;
    }
    
    server{
      listen 80;
      server_name ice.imemm.com;
    
    location / {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_set_header X-Nginx-Porxy true;
      proxy_pass http://ice;
      proxy_redirect off;
      }
    }
Last Modified: January 10, 2019
Archives QR Code Tip
QR Code for this page
Tipping QR Code