nginx.conf多目录配置

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}
http {
        
    server {
        listen       80;
        server_name  localhost;
        location / {
        root     "D:/workspace/chuanqi2/bin-debug/";
                 index  index.html index.htm;
        }

        
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }    
    }
    server {
        listen       8080;
        server_name  localhost;
        location / {
        root     "D:/9y9yclient/chuanqi2/bin-debug/";
                 index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }    
    }
    server {
        listen       8000;
        server_name  localhost;
        location / {
        root     "D:/client/chuanqi2/bin-debug/";
                 index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }    
    }
    
        
        
        
}

 

posted @ 2016-11-01 12:49  泥潭里的金鱼  阅读(1060)  评论(0编辑  收藏  举报