PipaServer Nginx Configuration

来源:互联网 发布:java软件工程师辛苦么 编辑:程序博客网 时间:2024/06/06 12:22
/etc/nginx/nginx.conf
upstream www {        server      127.0.0.1:8000;        keepalive   64;}upstream pipa {        server      127.0.0.1:8001;        keepalive   64;}upstream plan8{        server      127.0.0.1:8002;        keepalive   64;}upstream plan8mobile{        server      127.0.0.1:8003;        keepalive   64;}upstream plan8db{        server      127.0.0.1:8004;        keepalive   64;}server {        listen       80;        server_name  www.joinp8.com;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {            proxy_pass http://www;        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }}server {        listen       80;        server_name  pipa.joinp8.com;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {            proxy_pass http://pipa;        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }}server {        listen       80;        server_name  www.plan8t.com;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {            proxy_pass http://plan8;        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }}server {        listen       80;        server_name  m.plan8t.com;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {            proxy_pass http://plan8mobile;        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }}server {        listen       80;        server_name  api.plan8t.com;        # Load configuration files for the default server block.        include /etc/nginx/default.d/*.conf;        location / {            proxy_pass http://plan8db;        }        error_page 404 /404.html;            location = /40x.html {        }        error_page 500 502 503 504 /50x.html;            location = /50x.html {        }}
0 0
原创粉丝点击