• nginx配置


    user  weblogic;

    worker_processes auto;

    pid        /app/weblogic/pid/nginx.pid;

    #Specifies the value for maximum file descriptors that can be opened by this process.
    #worker_rlimit_nofile 65535;

    events
        {
            use epoll;
            worker_connections 65535;
            multi_accept on;
        }

    http
        {
            include       mime.types;
            default_type  application/octet-stream;

            server_names_hash_bucket_size 256;
            client_header_buffer_size 256k;
            large_client_header_buffers 4 256k;
            client_max_body_size 128m;
            client_body_buffer_size 16m;

     fastcgi_buffer_size 256k;
     fastcgi_buffers 256 16k;
     fastcgi_busy_buffers_size 256k;
     fastcgi_temp_file_write_size 256k;
     
     proxy_buffering on;
     proxy_buffer_size 1024k;
     proxy_buffers 32 8192k;
     proxy_busy_buffers_size 16384k;
     
            sendfile   on;
            tcp_nopush on;

            keepalive_timeout 120s;
     keepalive_requests 30000;
     reset_timedout_connection on;
     client_body_timeout 3m;

            tcp_nodelay on;

            gzip on;
            gzip_min_length  16k;
            gzip_buffers     8 32k;
            gzip_http_version 1.1;
            gzip_comp_level 4;
            gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
            gzip_vary on;
            gzip_proxied   expired no-cache no-store private auth;
            gzip_disable   "MSIE [1-6].";

            server_tokens off;
           
            log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
                 '$status $body_bytes_sent "$http_referer" '
                 '"$http_user_agent" $http_x_forwarded_for';
     #access_log off;

     server
     {
     listen 8088 default_server backlog=1024;
     server_name paytest.zjtlcb.com;
     index index.html index.htm;
     #root  /app/weblogic/html/;
     root  /app_nas/apps/deploy/html/;

               location /nginx_status  {
     stub_status on;
     access_log off;
     allow 1.2.101.1;
     allow 1.2.101.2;
     allow 1.2.101.3;
     allow 1.2.101.4;
     allow 1.2.101.5;
     allow 1.2.101.6;
     allow 1.2.101.7;
     allow 1.2.101.8;
     deny all;
     }

     location ~ .*.(gif|jpg|jpeg|png|bmp|swf|mp3)$ 
     {
     expires      12h;
     access_log   off;
     }

     location ~ .*.(js|css|ico)?$ 
     {
     expires      12h;
     access_log   off;
     }

     location ~ /. 
     {
     deny all;
     }
     
     
     location ^~ /ifsp-mchts 
     {
     proxy_pass http://1.2.201.30:7802/ifsp-mchts;
     proxy_connect_timeout 300;
     proxy_send_timeout 300;
     proxy_read_timeout 300;
     }
     location ^~ /ifsp-apps 
     {
     proxy_pass http://1.1.1.12:7602/ifsp-apps;
     proxy_connect_timeout 300;
     proxy_send_timeout 300;
     proxy_read_timeout 300;
     }
     location ^~ /imgs 
     {
     proxy_pass http://1.1.1.12:7902/imgs;
     proxy_connect_timeout 300;
     proxy_send_timeout 300;
     proxy_read_timeout 300;
     }
     location ^~ /ifsp-payweb 
     {
     proxy_pass http://1.1.1.12:7702/ifsp-payweb;
     proxy_connect_timeout 300;
     proxy_send_timeout 300;
     proxy_read_timeout 300;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header REMOTE-HOST $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
     add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
     }
     location ^~ /ifsp-qrccup 
     {
     proxy_pass http://1.1.1.12:7102/ifsp-qrccup;
     proxy_connect_timeout 300;
     proxy_send_timeout 300;
     proxy_read_timeout 300;
     }

     access_log  /app/weblogic/logs/nginx_access.log  access;
     error_log  /app/weblogic/logs/nginx_error.log  warn;
     }
     #include vhost/*.conf;
    }
     

  • 相关阅读:
    使用cmd命令行窗口操作SqlServer
    .net core compatibility windows & windows compatible Linux
    Microsoft Azure Tutorial: Build your first movie inventory web app with just a few lines of code
    Running ASP.NET Core applications on Windows Subsystem for Linux
    Simple Use IEnumerable<T>
    JSON in SQL Server 2016
    [开源 .NET 跨平台 Crawler 数据采集 爬虫框架: DotnetSpider] [一] 初衷与架构设计
    NotBacon
    Create an Azure SQL database in the Azure portal
    Cisco IP 电话 将它的voice mail 发送到手机
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348661.html
Copyright © 2020-2023  润新知