Nginx 代理设置 proxy_pass

Nginx网关设置

欢迎使用Markdown编辑器

修改nginx.conf


worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    #tcp_nopush     on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  localhost;

        location / {
            root   html;
            index  index.html index.htm;
        }
        location /user/ {
            proxy_pass http://127.0.0.1:10002/;
	}
        location /sms/ {
            proxy_pass http://127.0.0.1:10001/;
	}
        location = /50x.html {
            root   html;
        }
    }
    include servers/*;
}

上一篇:Windows Phone 8开发环境搭建


下一篇:C# 对图片进行缩放拖动