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错误, ...
随机推荐
- 【转】给word中的代码着色
基本操作 1)用Notepad++直接编辑代码文件,注意文件后缀,比如.cpp是C++程序,.m是Matlab,linux文件是.sh,写对后缀表示的文件类型,才有对应的语法高亮效果. 2)选中需要的 ...
- 分析一个react项目
目录结构 下面是使用npx create-react-app web-app来创建的一个项目(已经删除了多余的文件) web-app ├── node_modules │ ├── ....... ...
- Centos6.x升级内核方法支持Docker
Centos6升级内核方法_百度经验https://jingyan.baidu.com/article/7e4409531bda252fc1e2ef4c.html
- 使用PL/SQL连接Oracle时报错ORA-12541: TNS: 无监听程序
因公司需求,安装oracle数据库,oracle数据库用账号密码可以登录,然后在pl/sql里面不能登录,显示无监听程序. 这就说明可能有些服务没有启动,开始运行services.msc ,进入后寻找 ...
- Oracle 序列(sequence)
序列(sequence) 是Oracle提供的用于生成一系列唯一数字的数据库对象.它会自动生成顺序递增或者递减的序列号,以实现自动提供唯一的主键值.序列可以在多用户并发环境中使用,并且可以为所有用户生 ...
- 在Laravel中使用数据库事务以及捕获事务失败后的异常
Description 在Laravel中要想在数据库事务中运行一组操作,则可以在 DB facade 中使用 transaction 方法.如果在事务的闭包内抛出异常,事务将会被自动还原.如果闭包运 ...
- js获取非行间样式/写入样式(行间)
<!--DOCTYPE html--> <html> <head> <meta charset="utf-8" /> <sty ...
- mybatis逆向工程,实现join多表查询,避免多表相同字段名的陷阱
mybatis逆向工程,实现join多表查询,避免多表相同字段名的陷阱 前言:使用 mybatis generator 生成表格对应的pojo.dao.mapper,以及对应的example的 ...
- 三、Docker网络
一.查看8001端口是否开启处监听状态 netstat -apnl | grep 8001 二.使用brctl show可以看到虚拟机的网络关系 brctl show docker每新建一个conta ...
- vue-cli: render:h => h(App)是什么意思
import Vue from 'vue' import App from './App.vue' Vue.config.productionTip = false new Vue({ render: ...