nginx.conf(centos6, 1.12)主配置文件修改
#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)主配置文件修改的更多相关文章
- nginx.conf(centos7 1.14)主配置文件修改
#nginx1.14 centos7# For more information on configuration, see:# * Official English Documentation: h ...
- []转帖]linux 上修改了nginx.conf 怎么重新加载配置文件生效
linux 上修改了nginx.conf 怎么重新加载配置文件生效 https://www.cnblogs.com/zhuyeshen/ 步骤如下先利用/usr/local/nginx/sbin/ng ...
- linux 上修改了nginx.conf 怎么重新加载配置文件生效
步骤如下先利用/usr/local/nginx/sbin/nginx -t测试配置文件修改是否正常/usr/local/nginx/sbin/nginx -s reload重新加载 nginx 更改配 ...
- nginx产品环境安全配置-主配置文件
以下配置为产品环境的nginx基于安全和效率的主配置文件,不包含fastcgi相关配置 cat /etc/nginx/nginx.conf user nginx; worker_processes a ...
- Nginx安装与配置文件nginx.conf详解
引用“http://ixdba.blog.51cto.com/2895551/790611” 1.安装Nginx在安装Nginx之前,需确保系统已经安装了gcc. openssl-devel. pcr ...
- nginx作为web服务以及nginx.conf详解
Nginx系列文章:http://www.cnblogs.com/f-ck-need-u/p/7576137.html 1.nginx简介 nginx是一个优秀的web服务程序.反向代理程序.它采用非 ...
- nginx.conf解读
通常我们需要配置nginx.conf或者配置子项目的配置文件,那么我们需要解读它里面每一个参数的意义,就来个范例解读吧(有中午注释) #运行用户 user www-data; #启动进程,通常设置成和 ...
- Nginx安装,目录结构与配置文件详解
1.Nginx简介 Nginx(发音同 engine x)是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行.由俄罗斯的程序设 ...
- <nginx.conf> nginx设置用户权限
问题在于,我们使用weblogic在前台系统获取其他系统的文件,然后保存在webloigc目录下,然后配置了nginx来当http服务器,这样,其他的系统可以来下载文件,但是访问的时候提示403错误, ...
随机推荐
- Tomcat web.xml配置参数详解
Apache Tomcat Configuration Reference - The Context Containerhttps://tomcat.apache.org/tomcat-5.5-do ...
- 使用jmeter来发送json/gzip格式数据 --------笔记
一.使用jmeter来发送gzip数据 有时候我们需要模拟在客户端将数据压缩后, 发送(post)到服务器端. 通常这种情况,会发生在移动终端上. 这样做的好处, 是可以节省流量. 当然, 服务器返 ...
- Laravel设置软删除及其恢复系列操作
软删除及其相关实现 在模型类中要使用SoftDeletestrait并设置$date属性数组 <?php namespace App\Models; use Illuminate\Databas ...
- vue.js 添加 fastclick的支持
fastclick:处理移动端click事件300毫秒延迟 1.兼容性 iOS 3及更高版本的移动Safari iOS 5及更高版本的Chrome Android上的Chrome(ICS) Opera ...
- from组件补充
一.定义的规则 class TeacherForm(Form): #必须继承Form # 创建字段,本质上是正则表达式 username = fields.CharField( required=Tr ...
- python爬虫之爬虫性能篇
一.首先想到的是for循环,单线程爬取每个url,但是如果有url出现了问题,后面的url就得等,性能低. 二.我们考虑线程池的问题,下面我们定义了线程池里面最多10个任务,也就是说最多同一时间只能有 ...
- 莫烦scikit-learn学习自修第一天【scikit-learn安装】
1. 机器学习的分类 (1)有监督学习(包括分类和回归) (2)无监督学习(包括聚类) (3)强化学习 2. 安装 (1)安装python (2)安装numpy >=1.6.1 (3)安装sci ...
- 老男孩python学习自修第十一天【内置函数】
1.基本内置函数 help() 帮助文档 dir() 列出当前文件的所有变量和方法 vars() 列出当前文件的所有变量及其值 type() 返回变量的类型 id() 返回变量的内存地址 len() ...
- Dreamweaver怎样用Edge Web Fonts功能
https://jingyan.baidu.com/article/37bce2beb3af6f1002f3a2c9.html
- LODOP.FORMAT格式转换【回调和直接返回值】
Lodop中有一些格式转换函数,这些函数和其他众多函数一样,c-lodop需要使用回调函数On_Return返回,Lodop插件方式直接返回,通常混合部署,写法要兼容两个控件.可以用if (LODOP ...