zoukankan      html  css  js  c++  java
  • 我的ngnix 配置内容

    #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 {
        include       mime.types;
        default_type  application/octet-stream;
    
        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';
    
        #access_log  logs/access.log  main;
    
        sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
    
        #gzip  on;
    
        upstream tomcat-cos {
             
         #server 172.16.17.211;
        #server 172.16.17.222;
        server 172.16.18.18;
        #server 172.16.17.1
        }
    
    
    
        server { 
            listen       81;
            server_name  127.0.0.1;
    
            #charset koi8-r;
    
            #access_log  logs/host.access.log  main;
        error_page   405 =200;
            location / {
                #root   "proxy_pass http://172.16.17.222";
                #root   "D:/udf/trunk/10-udf-www/11-udf-ecw-www/src";
                #root   "D:/udf/branches/aliy-release/10-udf-www/11-udf-ecw-www/src";
                root   "D:/udfex/udfex-website-repo/ecw-website/src";
                index  index.html index.htm;
            try_files $uri $uri/ /index.html =404;
            }
            location ^~ /udf-img/ {  
                proxy_pass http://udf-ecw-test.oss-cn-beijing.aliyuncs.com;
            }
            
            location /udf-wechat{  
                #alias "D:/udf/trunk/10-udf-www/15-udf-wap-www/www";
                alias "D:/udf/branches/release-wechat/10-udf-www/15-udf-wap-www/www";
                index index.html;  
                autoindex on;
                autoindex_exact_size on;  
                autoindex_localtime on;
                try_files $uri $uri/ /index.html =404;
            }
    
        
        location /03-udf-oso {
            proxy_pass http://tomcat-cos;
        }
        
        location /03-udf-cos{
            #proxy_pass http://tomcat-cos;
            #proxy_pass http://test.cos.udfex.com;
            proxy_pass http://192.168.8.181:81;
        }
            
        location /05-udf-ecw {
            #proxy_pass http://tomcat-cos;
            #proxy_pass http://www.udfex.com;
            proxy_pass http://test.www.udfex.com;
        }
    
        location /udf-cos {
                alias   "D:/udfexpress/10-udf-www/12-udf-cos-www/src";
                index  index.html index.htm;
            try_files $uri $uri/ /index.html =404;
            }
        location /udf-oso{  
                alias "D:/udfexpress/10-udf-www/14-udf-oso-www/src";
                #alias "D:/06.ProjectCode/udfexpress/trunk/10-udf-www/14-udf-oso-www";
                index index.html index.htm;  
                autoindex on;
                autoindex_exact_size on;  
                autoindex_localtime on;
                try_files $uri $uri/ /index.html =404;
            }
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
        }
    
    
    
        server {
            listen 82;
            server_name 127.0.0.2;
            error_page   405 =200;
            location / {
                root "F:/udfex-website/udfex-website/src";
                index  index.html index.htm;
                try_files $uri $uri/ /index.html =404;
            }
    
            location /05-udf-ecw {
                proxy_pass http://test.www.udfex.com;
                #proxy_pass 192.168.8.89;
            }
        }
    
      server {
            listen 83;
            server_name 127.0.0.3;
            error_page   405 =200;
            location / {
                root "D:udfex-cos-websitecos-websitesrc";
                index  index.html index.htm;
                try_files $uri $uri/ /index.html =404;
            }
    
            location /03-udf-cos {
                proxy_pass http://test.cos.udfex.com;
                #proxy_pass http://192.168.8.181:81;
            }
        }
        
        server {
            listen 84;
            server_name 127.0.0.4;
            error_page   405 =200;
            location / {
                root "D:bsbs-websitesrc";
                index  index.html index.htm;
                try_files $uri $uri/ /index.html =404;
                proxy_pass http://bbs.udfex.com;
            }
        }
    
    }
    心怀梦想,勿忘初心
  • 相关阅读:
    第五章 面向方面编程___通知类型
    从 C++ 到ObjectiveC
    iPhone/Mac ObjectiveC内存管理教程和原理剖析(三)@property (retain)和@synthesize的默认实现
    两个操作字符串的方法:读取指定位置的字符和找出某个字符串的位置
    SQLITE3使用总结
    iphone中如何进行多线程编程
    sqlite数据库在IOS中的运用
    重载、覆盖、隐藏
    (转)c/c++ 内存管理
    iPhone/Mac ObjectiveC内存管理教程和原理剖析(四)系统自动创建新的autorelease pool
  • 原文地址:https://www.cnblogs.com/qshting/p/5053311.html
Copyright © 2011-2022 走看看