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 1024;
    }

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

    #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 website {
    server localhost:88;
    }


    server {
    listen 80;
    server_name www.zhengzhouta.gov.cn;

    #charset koi8-r;

    #access_log logs/host.access.log main;
    client_max_body_size 50M;

    location / {
    proxy_pass http://website;
    proxy_redirect default;
    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;
    proxy_connect_timeout 1;
    proxy_read_timeout 300;
    proxy_send_timeout 300;

    }
    }

    server {
    listen 80;
    server_name *.zhengzhoutourism.cn;

    #charset koi8-r;

    #access_log logs/host.access.log main;

    location / {
    proxy_pass http://website;
    proxy_redirect default;
    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;
    proxy_connect_timeout 1;
    proxy_read_timeout 300;
    proxy_send_timeout 300;
    fastcgi_connect_timeout 300s;
    fastcgi_send_timeout 300s;
    fastcgi_read_timeout 300s;
    }
    include drop_sql.conf;
    }

    }

  • 相关阅读:
    OpenGL学习笔记2——顶点数组
    OpenGL学习笔记1——第一个程序
    OpenGL学习笔记0——安装库
    SDRAM控制器的Verilog建模之一
    Norflash控制器的Verilog建模之三(測試)
    Norflash控制器的Verilog建模之二(仿真)
    Norflash控制器的Verilog建模之一
    simulink中定义结构体信号线
    MATLAB转C语言(二)
    MATLAB GUI界面设计------“轴”组件配置
  • 原文地址:https://www.cnblogs.com/Jeely/p/11390362.html
Copyright © 2011-2022 走看看