<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Nginx%3AOptimized_configuration_with_DDoS_mitigation</id>
	<title>Nginx:Optimized configuration with DDoS mitigation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kangtain.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Nginx%3AOptimized_configuration_with_DDoS_mitigation"/>
	<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;action=history"/>
	<updated>2026-04-26T17:44:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=5840&amp;oldid=prev</id>
		<title>Kangtain at 05:04, 22 September 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=5840&amp;oldid=prev"/>
		<updated>2022-09-22T05:04:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:04, 22 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Paste di &amp;lt;code&amp;gt;/etc/nginx/nginx.conf&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Paste di &amp;lt;code&amp;gt;/etc/nginx/nginx.conf&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;nginx&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;nginx&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; line=&quot;1&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;user  nginx;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;user  nginx;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=5836&amp;oldid=prev</id>
		<title>Kangtain at 05:01, 22 September 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=5836&amp;oldid=prev"/>
		<updated>2022-09-22T05:01:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;amp;diff=5836&amp;amp;oldid=2792&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2792&amp;oldid=prev</id>
		<title>Kangtain at 00:53, 21 January 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2792&amp;oldid=prev"/>
		<updated>2022-01-21T00:53:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:53, 21 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l102&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Source==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://gist.github.com/igortik/0130e69a163d14658ef3d013890c8395 github.com]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[https://gist.github.com/igortik/0130e69a163d14658ef3d013890c8395 github.com]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Web Server]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Server]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Tutorial]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2643&amp;oldid=prev</id>
		<title>Kangtain at 03:22, 12 January 2022</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2643&amp;oldid=prev"/>
		<updated>2022-01-12T03:22:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 12 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Paste di &amp;lt;code&amp;gt;/etc/nginx/nginx.conf&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  user  nginx;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  user  nginx;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
	<entry>
		<id>https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2631&amp;oldid=prev</id>
		<title>Kangtain: Created page with &quot;  user  nginx;    # one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu  worker_processes  4;    # renice workers to reduce priority compared to system processes for  # machine health. worst case nginx will get ~25% system resources at nice=15  worker_priority -5;    timer_resolution 100ms;    error_log  /var/log/nginx/error.log warn;  pid        /var/run/nginx.pid;    worker_rlimit_nofile 100000;    events {      worker_connections  1024;      use epoll;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kangtain.com/wiki/index.php?title=Nginx:Optimized_configuration_with_DDoS_mitigation&amp;diff=2631&amp;oldid=prev"/>
		<updated>2022-01-10T05:42:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  user  nginx;    # one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu  worker_processes  4;    # renice workers to reduce priority compared to system processes for  # machine health. worst case nginx will get ~25% system resources at nice=15  worker_priority -5;    timer_resolution 100ms;    error_log  /var/log/nginx/error.log warn;  pid        /var/run/nginx.pid;    worker_rlimit_nofile 100000;    events {      worker_connections  1024;      use epoll;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
 user  nginx;&lt;br /&gt;
 &lt;br /&gt;
 # one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu&lt;br /&gt;
 worker_processes  4;&lt;br /&gt;
 &lt;br /&gt;
 # renice workers to reduce priority compared to system processes for&lt;br /&gt;
 # machine health. worst case nginx will get ~25% system resources at nice=15&lt;br /&gt;
 worker_priority -5;&lt;br /&gt;
 &lt;br /&gt;
 timer_resolution 100ms;&lt;br /&gt;
 &lt;br /&gt;
 error_log  /var/log/nginx/error.log warn;&lt;br /&gt;
 pid        /var/run/nginx.pid;&lt;br /&gt;
 &lt;br /&gt;
 worker_rlimit_nofile 100000;&lt;br /&gt;
 &lt;br /&gt;
 events {&lt;br /&gt;
     worker_connections  1024;&lt;br /&gt;
     use epoll;&lt;br /&gt;
     # Accept as many connections as possible, after nginx gets notification about a new connection.&lt;br /&gt;
     multi_accept on;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 http {&lt;br /&gt;
 &lt;br /&gt;
     server_tokens off;&lt;br /&gt;
     server_name_in_redirect off;&lt;br /&gt;
 &lt;br /&gt;
     include       /etc/nginx/mime.types;&lt;br /&gt;
     default_type  application/octet-stream;&lt;br /&gt;
 &lt;br /&gt;
     log_format  main  &amp;#039;$remote_addr - $remote_user [$time_local] &amp;quot;$request&amp;quot; &amp;#039;&lt;br /&gt;
                       &amp;#039;$status $body_bytes_sent &amp;quot;$http_referer&amp;quot; &amp;#039;&lt;br /&gt;
                       &amp;#039;&amp;quot;$http_user_agent&amp;quot; &amp;quot;$http_x_forwarded_for&amp;quot;&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
     access_log /var/log/nginx/access.log  main buffer=16k;&lt;br /&gt;
     access_log off;&lt;br /&gt;
 &lt;br /&gt;
     # Timeouts, do not keep connections open longer then necessary to reduce&lt;br /&gt;
     # resource usage and deny Slowloris type attacks.&lt;br /&gt;
 &lt;br /&gt;
     # reset timed out connections freeing ram&lt;br /&gt;
     reset_timedout_connection on;&lt;br /&gt;
     # maximum time between packets the client can pause when sending nginx any data&lt;br /&gt;
     client_body_timeout 10s;&lt;br /&gt;
     # maximum time the client has to send the entire header to nginx&lt;br /&gt;
     client_header_timeout 10s;&lt;br /&gt;
     # timeout which a single keep-alive client connection will stay open&lt;br /&gt;
     keepalive_timeout 65s;&lt;br /&gt;
     # maximum time between packets nginx is allowed to pause when sending the client data&lt;br /&gt;
     send_timeout 10s;&lt;br /&gt;
 &lt;br /&gt;
     # number of requests per connection, does not affect SPDY&lt;br /&gt;
     keepalive_requests 100; &lt;br /&gt;
   &lt;br /&gt;
     # buffers&lt;br /&gt;
 &lt;br /&gt;
     fastcgi_buffer_size 128k;&lt;br /&gt;
     fastcgi_buffers 256 16k;&lt;br /&gt;
     fastcgi_busy_buffers_size 256k;&lt;br /&gt;
     fastcgi_temp_file_write_size 256k;&lt;br /&gt;
 &lt;br /&gt;
     proxy_buffer_size   128k; &lt;br /&gt;
     proxy_buffers   4 256k;&lt;br /&gt;
     proxy_busy_buffers_size   256k;&lt;br /&gt;
 &lt;br /&gt;
     fastcgi_read_timeout 150;&lt;br /&gt;
 &lt;br /&gt;
     sendfile on;&lt;br /&gt;
     tcp_nopush on;&lt;br /&gt;
     tcp_nodelay on;&lt;br /&gt;
 &lt;br /&gt;
     types_hash_max_size 2048;&lt;br /&gt;
     #postpone_output 0;&lt;br /&gt;
 &lt;br /&gt;
     gzip on;&lt;br /&gt;
     gzip_vary on;&lt;br /&gt;
     gzip_comp_level 2;&lt;br /&gt;
     gzip_min_length 1000;&lt;br /&gt;
     gzip_proxied expired no-cache no-store private auth;&lt;br /&gt;
     gzip_types text/plain application/json text/xml application/xml;&lt;br /&gt;
     gzip_disable &amp;quot;msie6&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
     client_max_body_size 20m;&lt;br /&gt;
 &lt;br /&gt;
     # fastcgi cache, caching request without session variable initialized by session_start()&lt;br /&gt;
     fastcgi_cache_path /var/cache/nginx/fastcgi_cache levels=1:2 keys_zone=fastcgi_cache:16m max_size=256m inactive=1d;&lt;br /&gt;
     fastcgi_temp_path /var/cache/nginx/fastcgi_temp 1 2;&lt;br /&gt;
 &lt;br /&gt;
     # DDoS Mitigation &lt;br /&gt;
     limit_conn_zone $binary_remote_addr zone=perip:10m;&lt;br /&gt;
     limit_conn perip 100;&lt;br /&gt;
 &lt;br /&gt;
     limit_req_zone $binary_remote_addr zone=engine:10m rate=2r/s;&lt;br /&gt;
     limit_req_zone $binary_remote_addr zone=static:10m rate=100r/s;&lt;br /&gt;
     &lt;br /&gt;
     include /etc/nginx/conf.d/*.conf;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
*[https://gist.github.com/igortik/0130e69a163d14658ef3d013890c8395 github.com]&lt;/div&gt;</summary>
		<author><name>Kangtain</name></author>
	</entry>
</feed>