Last active
December 20, 2015 17:19
-
-
Save tankist/6167710 to your computer and use it in GitHub Desktop.
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
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
# Let NGINX get the real client IP for its access logs | |
set_real_ip_from 127.0.0.1; | |
real_ip_header X-Forwarded-For; | |
# Basic Settings | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 20; | |
client_max_body_size 15m; | |
client_body_timeout 60; | |
client_header_timeout 60; | |
client_body_buffer_size 1K; | |
client_header_buffer_size 1k; | |
large_client_header_buffers 4 8k; | |
send_timeout 60; | |
reset_timedout_connection on; | |
types_hash_max_size 2048; | |
server_tokens off; | |
# server_names_hash_bucket_size 64; | |
# server_name_in_redirect off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
# Logging Settings | |
# access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
# Log Format | |
log_format main '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
# Gzip Settings | |
gzip on; | |
gzip_static on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_min_length 512; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; | |
include /etc/nginx/conf.d/*.conf; | |
include /etc/nginx/sites-enabled/*; | |
} |
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
pid = /var/run/php5-fpm.pid | |
error_log = /var/log/php5-fpm.log | |
emergency_restart_threshold = 5 | |
emergency_restart_interval = 2 | |
events.mechanism = epoll | |
include=/etc/php-fpm.d/*.conf |
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
[www] | |
listen = 127.0.0.1:9000 | |
listen.allowed_clients = 127.0.0.1 | |
user = www-data | |
group = www-data | |
pm = dynamic | |
pm.max_children = 200 | |
pm.start_servers = 15 | |
pm.min_spare_servers = 5 | |
pm.max_spare_servers = 25 | |
pm.max_requests = 500 | |
pm.process_idle_timeout = 60s | |
request_terminate_timeout = 30 | |
slowlog = /var/log/php-fpm/www-slow.log | |
php_flag[display_errors] = off | |
php_admin_value[error_reporting] = 0 | |
php_admin_value[error_log] = /var/log/php5-fpm.log | |
php_admin_flag[log_errors] = on | |
php_admin_value[memory_limit] = 256M |
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
extension = apc.so | |
apc.stat = "0" | |
apc.max_file_size = "1M" | |
apc.localcache = "1" | |
apc.localcache.size = "256" | |
apc.shm_segments = "1" | |
apc.ttl = "3600" | |
apc.user_ttl = "7200" | |
apc.gc_ttl = "3600" | |
apc.cache_by_default = "1" | |
apc.filters = "" | |
apc.write_lock = "1" | |
apc.num_files_hint= "512" | |
apc.user_entries_hint="4096" | |
apc.shm_size = "256M" | |
apc.mmap_file_mask=/tmp/apc.XXXXXX | |
apc.include_once_override = "0" | |
apc.file_update_protection="2" | |
apc.canonicalize = "1" | |
apc.report_autofilter="0" | |
apc.stat_ctime="0" |
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
PORT="11211" | |
USER="memcached" | |
MAXCONN="2048" | |
CACHESIZE="1024" | |
OPTIONS="-t 4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment