• nginx


    #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 64;
    }
    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;
        #设定请求缓冲
        client_header_buffer_size    1k;
        large_client_header_buffers 4 4k;
        #开启gzip模块
        gzip on;
        gzip_min_length 1100;
        gzip_buffers     4 8k;
        gzip_types       text/plain;
        output_buffers   1 32k;
        postpone_output 1460;
     
          upstream www.hnjzjx.org {
            server 127.0.0.1:8080;
        }
     
          upstream zu1{
            server 127.0.0.1:805;
        }
     
     
        server {
            listen       80;
            server_name www.hnjzjx.org;
            #charset koi8-r;
            access_log logs/host.access.log main;
            location / {
                #root   html;
                #index index.html index.htm;
               proxy_pass http://localhost:8080;
                 include proxy.conf;
            }
       }
     
        server {
            listen       80  default_server;
            #server_name "" ;
            #charset koi8-r;
            access_log logs/host.access.log main;
            location / {
                #root   html;
                #index index.html index.htm;
                proxy_pass http://localhost:805; 
       
                include    proxy.conf;
            }
        }
    }
     
  • 相关阅读:
    windows常规
    oracle常规操作
    idea使用
    java-maven
    java-rabbimq
    centos7 rabbitMq 安装教程
    Leetcode 332.重新安排行程
    Leetcode 334.递增的三元子序列
    Leetcode 331.验证二叉树的前序序列化
    Leetcode 330.按要求补齐数组
  • 原文地址:https://www.cnblogs.com/MyKingDragon/p/4206955.html
Copyright © 2020-2023  润新知