Created
February 4, 2015 06:16
-
-
Save strangeman/2affb134315156e3a531 to your computer and use it in GitHub Desktop.
Hiload nginx + php-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes auto; | |
events { | |
use epoll; | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
access_log off; | |
error_log /var/log/nginx/error.log crit; | |
keepalive_timeout 30; | |
keepalive_requests 100; | |
client_max_body_size 1m; | |
client_body_timeout 10; | |
reset_timedout_connection on; | |
send_timeout 2; | |
sendfile on; | |
tcp_nopush on; | |
gzip on; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; | |
open_file_cache max=200000 inactive=20s; | |
open_file_cache_valid 30s; | |
open_file_cache_min_uses 2; | |
open_file_cache_errors on; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment