This section describes how to remove slow and unnecessary ciphers from OpenSSL and NGINX. When SSL performance is paramount, it’s always a good idea to try different key sizes and types in your
Over the past few years, I’ve worked with a handful of partners for whom NGINX Plus performance was the primary concern. The conversation typically starts with their difficulty matching our publishedperformance benchmarks. The challenge usually results from the partner jumping straight to a fixed ...
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { #强缓存,时间为一年,浏览器和 cdn中间件可以缓存 add_header Cache-Control "max-age=31536000"; etag off; access_log off; # 禁...
Wanting to improve performance is easy, but actually seeing results is difficult. To help you on your journey, this blog post offers you ten tips to help you increase your website performance by as much as 10x. It’s the first in a series detailing how you can increase your application p...
Structure of the map: The structure of the map can also impact performance, as certain structures may be more efficient than others. For example, using a hash table can be faster than using a linear search, especially for large maps. You can use the hash parameter of the map directive to...
原文:www.nginx.com/blog/10-tips-for-10x-application-performance/ 提升Web应用的性能从未像今天这样刻不容缓。 在线经济活动的比例日益提高,就连发展中国家和地区的经济活动都已经有5%以上在线进行了(相关数据请参考本文后面的资源)。在这个超级链接、随时在线的现代世界,用户的期望也远非昔日可比。如果你的网站不...
NGINX is well known as a high‑performance load balancer, cache, and web server, powering over 40% of the busiest websites in the world. For most use cases, default NGINX and Linux settings work well, but achieving optimal performance sometimes requires a bit of tuning. This blog post di...
# Map module: map $remote_addr $globals_internal_map_acl { # Status code: # - 0 = false # - 1 = true default 0; ### INTERNAL ### 10.255.10.0/24 1; 10.255.20.0/24 1; 10.255.30.0/24 1; 192.168.0.0/16 1; } # Geo module: geo $globals_internal_geo_acl { # Status code:...
Map all the things...Map module provides a more elegant solution for clearly parsing a big list of regexes. Base Rules Use custom log formatsThis is extremely helpful for debugging specific location directives. Debugging Use debug mode to track down unexpected behaviourThere's probably more det...
vm.max_map_count= 262144# 设置为1 net.ipv4.tcp_no_metrics_save= 1# 禁用 sysrq 功能 kernel.sysrq= 0# 控制 core 文件的文件名中是否添加 pid 作为扩展 kernel.core_uses_pid= 1# 设置为1,防止 SYNC FLOOD 攻击 net.ipv4.tcp_syncookies= 1# 消息队列的最大消息大小,默认8k,建议64kb ...