来领礼包啦!每天均可领,红包更大啦!进[支付]宝搜索词542337256领取

代理端口配置

server {
        listen 80;
        server_name aming.com;

        location / {
            proxy_pass  http://127.0.0.1:8080/;
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }

        location /api {
            proxy_pass  http://127.0.0.1:9000/;
            proxy_redirect     off;
            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.conf配置

#user  nginx;
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile on;
  #  tcp_nopush on;
  #  tcp_nodelay on;
    types_hash_max_size 2048;
    keepalive_timeout  65;

   # access_log /var/log/nginx/access.log;
   # error_log /var/log/nginx/error.log;
          gzip  on;
          include D:/nginx-1.12.0/conf/conf.d/*.conf;
}