网站首页 返回列表 像“草根”一样,紧贴着地面,低调的存在,冬去春来,枯荣无恙。 nginx主配置文件 24-09-23 09:48:44 曹大卫 47 ```shell ###主配置文件 user www www; worker_processes auto; worker_cpu_affinity auto; error_log logs/error.log crit; pid logs/nginx.pid; worker_rlimit_nofile 51200; events{ use epoll; worker_connections 51200; multi_accept off; accept_mutex off; } http{ include mime.types; include date.conf; default_type application/octet-stream; log_format main '$remote_addr - $HTTP_CDN_SRC_IP - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" "$http_host" "$upstream_addr" "$request_time" "$upstream_response_time"'; server_names_hash_bucket_size 128; client_header_buffer_size 128k; large_client_header_buffers 4 128k; client_max_body_size 50m; sendfile on; sendfile_max_chunk 512k; tcp_nopush on; keepalive_timeout 60; 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 image/jpeg image/gif image/png; gzip_vary on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; server_tokens off; proxy_hide_header X-Powered-By; proxy_hide_header Server; #lua lua_package_path "/opt/openresty/lualib/?.lua;;"; lua_package_cpath "/opt/openresty/lualib/?.so;;"; #禁止默认IP访问 server { listen 80 default; server_name _; return 500; } include vhost/*.conf; } ``` 关键字词[nginx] 分享到: 上一篇:mysql建库,用户,赋权语句 下一篇:nginx配置http强跳https 如需留言,请 登录,没有账号?请 注册 0 条评论 0 人参与 最新文章 centos7 rsyslog v8.24.0-34.el7 版本bug efk中将宿主机ip地址采集到日志输出中 企业微信群机器人@成员的方式 promethues operator修改告警规则 centos7配置阿里云yum源 pt-duplicate-key-checker 工具检测mysql是否有重复索引 阿里云ecs扩容磁盘 es启用 tcp和http的ssl后报错 点击排行 alertmanager按标签分发告警到接收者 calico三种网络模式 promethues operator修改告警规则 企业微信群机器人@成员的方式 centos7配置阿里云yum源 最新评论 友情链接
0 条评论 0 人参与