docker下nginx基本配置
程序员文章站
2024-01-05 17:45:40
docker下nginx基本配置...
user nginx;
worker_processes auto;
worker_cpu_affinity auto;
error_log /var/log/nginx/error.log crit;
pid /var/run/nginx.pid;
events {
use epoll;
worker_connections 1024;
multi_accept off;
accept_mutex off;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
sendfile on;
sendfile_max_chunk 512k;
tcp_nopush on;
keepalive_timeout 65;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
include /etc/nginx/conf.d/*.conf;
}
本文地址:https://blog.csdn.net/weixin_41887155/article/details/107340011
上一篇: Win2003下提高FSO的安全性
下一篇: 网站注册用户密码储存问题
推荐阅读
-
ubuntu 下的nginx服务器配置详解
-
Linux下从零开始安装配置Nginx服务器+PHP开发环境,_PHP教程
-
docker完整配置nginx+php+mysql的方法步骤
-
Windows下Nginx的安装与配置
-
Centos7下nginx的安装与配置教程详解
-
Linux Nginx下SSL证书安装方法及WordPress CDN配置
-
ThinkPHP 32 在 Nginx 下配置 URL 模式为 REWRITE 模式
-
FastDFS - Linux下搭建FastDFS 文件服务器与Nginx配置(部署和运维)
-
ubuntu下配置nginx+php+mysql详解_php实例
-
windows下配置nginx+php环境