zoukankan      html  css  js  c++  java
  • nginx.conf.default

    [root@web03 conf]# vim nginx.conf.default


    #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;

    "nginx.conf.default" 117L, 2656C

    [root@web03 conf]# egrep -v -v "#|^$" nginx.conf.default

    worker_processes 1;


    events {
    worker_connections 1024;
    }


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

    sendfile on;

    keepalive_timeout 65;


    server {
    listen 80;
    server_name localhost;

    location / {
    root html;
    index index.html index.htm;
    }


    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root html;
    }

    }


    }
    [root@web03 conf]#

    [root@web03 conf]# egrep -v -v "#|^$" nginx.conf.default >nginx.conf

    [root@web03 conf]# vim nginx.conf


    worker_processes 1;


    events {
    worker_connections 1024;
    }


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

    sendfile on;

    keepalive_timeout 65;


    server {
    listen 80;
    server_name localhost;

    location / {
    root html;
    index index.html index.htm;
    }


    "nginx.conf" 53L, 515C

    [root@web03 conf]# /application/nginx/sbin/nginx -t
    nginx: the configuration file /application/nginx-1.6.3/conf/nginx.conf syntax is ok
    nginx: configuration file /application/nginx-1.6.3/conf/nginx.conf test is successful
    [root@web03 conf]# /application/nginx/sbin/nginx -s reload
    [root@web03 conf]#

  • 相关阅读:
    Xcode waring: no rule to process file *** 警告提示
    Assigning to "id<CALayerDelegate> _Nullable" from incompatible type "ZXCapture *const __strong" 的警告提示信息
    图片编码简介
    oc温习八:static、extern、const 的了解
    转:Objective-C新特性__nonnull和__nullable
    oc温习七:结构体与枚举
    oc温习六:预处理指令
    oc温习五:字符串
    OC温习四:数组
    oc温习三:常用函数
  • 原文地址:https://www.cnblogs.com/liweiming/p/6957689.html
Copyright © 2011-2022 走看看