* Delete nginx cache file It isn't necessary, we are not sending static files * Optimize nginx conf Sendfile and tcp_nopush are for static files
@@ -7,7 +7,7 @@ daemon off;
events {
worker_connections 32768;
- multi_accept off;
+ multi_accept off; #default
}
http {
@@ -15,9 +15,9 @@ http {
access_log off;
server_tokens off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
+ sendfile off; #default
+ tcp_nopush off; #default
+ tcp_nodelay on; #default
keepalive_timeout 65;
server {
@@ -14,16 +14,11 @@ http {
+ sendfile off;
+ tcp_nopush off;
tcp_nodelay on;
keepalive_timeout 65s;
- open_file_cache max=2000 inactive=20s;
- open_file_cache_valid 60s;
- open_file_cache_min_uses 5;
- open_file_cache_errors off;
-
php_ini_path /deploy/conf/php.ini;