#nginx1.12 centos6.x
user admin admin;
worker_processes 4;

error_log /data/services/logs/nginx_error.log;
pid /data/services/run/nginx.pid;

worker_rlimit_nofile 65535;
events {
use epoll;
worker_connections 5120;
}

http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 64;
#limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m;

log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$remote_addr" "host: $http_host" "$request_time" "$upstream_response_time" "$request_method"';
#access_log off;
access_log /data/services/logs/nginx_access.log main;
error_log /data/services/logs/nginx_error.log crit;

autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8,gbk;
#charset utf-8;
## Size Limits
large_client_header_buffers 8 12k;
client_body_buffer_size 32k;
client_header_buffer_size 8k;
client_max_body_size 200m;

## Timeouts
client_body_timeout 120s;
client_header_timeout 30s;
keepalive_timeout 120s;
send_timeout 120s;

## General Options
ignore_invalid_headers on;
#limit_req zone=one burst=5;
sendfile on;
server_name_in_redirect off;
server_tokens off;

## TCP options
tcp_nodelay on;
#tcp_nopush on;

## Compression
gzip on;
gzip_disable "MSIE [1-6]\.";
gzip_buffers 32 64k;
gzip_comp_level 7;
gzip_min_length 1024;
gzip_proxied any;
gzip_types text/plain application/x-javascript text/css text/javascript text/xml image/x-icon image/bmp;
gzip_vary on;

#FastCGI相关参数是为了改善网站的性能:减少资源占用,提高访问速度。
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;

fastcgi_buffers 4 256k;
fastcgi_buffer_size 128k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;

#####include coco #########
#include ./vhosts/80_jv.conf;
include ./vhosts/81_Bus.conf;
include ./vhosts/82_Api.conf;
include ./vhosts/83_Po.conf;
include ./vhosts/85_Sup.conf;
include ./vhosts/80_vip.conf;
include ./vhosts/80_med.conf;
include ./vhosts/80_www.conf;
include ./vhosts/86_product.conf;
include ./vhosts/87_Pur.conf;
include ./vhosts/90_Wap.conf;
include ./vhosts/80_gitlab-nginx.conf;
include ./vhosts/8082_med.conf;
include ./vhosts/8083_ed.conf;
include ./vhosts/8020_apache.conf;
include ./vhosts/80_JDict.conf;
include ./vhosts/8085_wms.conf;
include ./vhosts/5000_feedback.conf;
include ./vhosts/8088_xwms.conf;

}

nginx.conf(centos6, 1.12)主配置文件修改的更多相关文章

  1. nginx.conf(centos7 1.14)主配置文件修改

    #nginx1.14 centos7# For more information on configuration, see:# * Official English Documentation: h ...

  2. []转帖]linux 上修改了nginx.conf 怎么重新加载配置文件生效

    linux 上修改了nginx.conf 怎么重新加载配置文件生效 https://www.cnblogs.com/zhuyeshen/ 步骤如下先利用/usr/local/nginx/sbin/ng ...

  3. linux 上修改了nginx.conf 怎么重新加载配置文件生效

    步骤如下先利用/usr/local/nginx/sbin/nginx -t测试配置文件修改是否正常/usr/local/nginx/sbin/nginx -s reload重新加载 nginx 更改配 ...

  4. nginx产品环境安全配置-主配置文件

    以下配置为产品环境的nginx基于安全和效率的主配置文件,不包含fastcgi相关配置 cat /etc/nginx/nginx.conf user nginx; worker_processes a ...

  5. Nginx安装与配置文件nginx.conf详解

    引用“http://ixdba.blog.51cto.com/2895551/790611” 1.安装Nginx在安装Nginx之前,需确保系统已经安装了gcc. openssl-devel. pcr ...

  6. nginx作为web服务以及nginx.conf详解

    Nginx系列文章:http://www.cnblogs.com/f-ck-need-u/p/7576137.html 1.nginx简介 nginx是一个优秀的web服务程序.反向代理程序.它采用非 ...

  7. nginx.conf解读

    通常我们需要配置nginx.conf或者配置子项目的配置文件,那么我们需要解读它里面每一个参数的意义,就来个范例解读吧(有中午注释) #运行用户 user www-data; #启动进程,通常设置成和 ...

  8. Nginx安装,目录结构与配置文件详解

    1.Nginx简介 Nginx(发音同 engine x)是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行.由俄罗斯的程序设 ...

  9. <nginx.conf> nginx设置用户权限

    问题在于,我们使用weblogic在前台系统获取其他系统的文件,然后保存在webloigc目录下,然后配置了nginx来当http服务器,这样,其他的系统可以来下载文件,但是访问的时候提示403错误, ...

随机推荐

  1. CodeIgniter框架中尝试使用swoole

    ci框架版本:3.1.7.     swoole版本:1.7.      php版本:5.6 相关文档: 以cli方式运行ci框架 swoole官方手册 创建一个TestSwoole和Hello控制器 ...

  2. 开发神器之phpstorm破解与日常使用

    PhpStorm 是 JetBrains 公司开发的一款商业的 PHP 集成开发工具,旨在提高用户效率,可深刻理解用户的编码,提供智能代码补全,快速导航以及即时错误检查. PhpStorm可随时帮助用 ...

  3. DVWA学习笔记-----环境搭建

    DVWA是一款渗透测试的演练系统,在圈子里是很出名的.如果你需要入门,那么就选它了. 我们通常将演练系统称为靶机,下面请跟着我一起搭建DVWA测试环境.  安装PHP集成环境 我这里用的是phpstu ...

  4. linux 安装 SVN server

    安装 使用yum安装非常简单: yum install subversion 配置 2.1. 创建仓库 我们这里在/home下建立一个名为svn的仓库(repository),以后所有代码都放在这个下 ...

  5. cpp11_thread线程

    一.进程与线程 cpu一般有m核n线程的说法,那么该cpu只能同时运行n个线程(线程中没有sleep). #include <thread> #include <mutex> ...

  6. cookie路径概念理解

    .创建一个cookie并设置 cookie的有效路径: $.cookie('the_cookie', 'the_value', { expires: 7, path: '/' }); 注:在默认情况下 ...

  7. python读文件指定行的数据

    import linecacheprint linecache.getline('url.txt',2) 读取url.txt文件的第2行内容

  8. MySQL中and和or的优先级的问题

    参考资料: 关于MySQL中AND和OR的优先级的问题 SQL语句中的AND和OR执行顺序问题 MySQL带OR关键字的多条件查询

  9. Code::Blocks debug程序

    设置Settings--->Compiler, 打上勾: Produce debugging symbols [-g] 需要在settings->debugger settings-> ...

  10. Log4j2配置与使用

    依赖包: <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> <depend ...