- user www-data;
- worker_processes 4;
- pid /run/nginx.pid;
- events {
- worker_connections 1024;
- # multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 3;
- types_hash_max_size 2048;
- proxy_buffer_size 128k;
- proxy_buffers 4 256k;
- proxy_busy_buffers_size 256k;
- 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;
- ##
- #php max upload limit cannot be larger than this
- ##
- client_max_body_size 13m;
- index index.php index.html index.htm;
- ##
- # Upstream to abstract backend connection(s) for PHP.
- ##
- upstream php {
- #this should match value of "listen" directive in php-fpm pool
- server unix:/tmp/php-fpm.sock;
- # server 127.0.0.1:9000;
- }
- gzip on;
- gzip_disable "msie6";
- ##
- # Virtual Host Configs
- ##
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }