zoukankan      html  css  js  c++  java
  • 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;
            }
        }
    }
     
  • 相关阅读:
    Linux常用的命令
    【练习】分区
    【测试】RAC搭建(裸设备)
    【练习】使用事务和锁定语句
    【练习】使用事务控制语句
    【练习】设置数据类型
    【练习】显示MySQLadmin 库户籍选项
    【练习】显示MYSQL客户机选项
    【练习】如何显示本地主机上的MySQL客户机版本
    【测试】切换保护模式,最大性能到最大可用
  • 原文地址:https://www.cnblogs.com/MyKingDragon/p/4206955.html
Copyright © 2011-2022 走看看