Complete the code to enable zero-copy file transfer in nginx.
sendfile [1];Setting sendfile on; enables zero-copy file transfer, improving performance.
Complete the code to enable tcp_nopush in nginx for better packet handling.
tcp_nopush [1];Setting tcp_nopush on; allows nginx to send headers in one packet, improving network efficiency.
Fix the error in the nginx configuration to properly enable sendfile.
sendfile [1];The correct syntax to enable sendfile is sendfile on;. Other values cause errors.
Fill both blanks to configure nginx for optimal file sending with sendfile and tcp_nopush.
sendfile [1]; tcp_nopush [2];
Both sendfile and tcp_nopush should be set to on for best performance.
Fill all three blanks to complete the nginx configuration snippet for efficient file serving.
server {
listen 80;
root /var/www/html;
sendfile [1];
tcp_nopush [2];
keepalive_timeout [3];
}Setting sendfile and tcp_nopush to on enables efficient file transfer. keepalive_timeout 65; is a common default to keep connections alive longer.