Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www;
- worker_processes 4;
- events {
- worker_connections 2048;
- }
- http {
- # Basic Settings
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- client_max_body_size 16m;
- client_body_timeout 120s;
- include /usr/local/etc/nginx/mime.types;
- default_type application/octet-stream;
- # Logging Settings
- log_format gzip '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" "$gzip_ratio"';
- access_log /var/log/nginx/access.log gzip buffer=32k;
- error_log /var/log/nginx/error.log notice;
- # Gzip Settings
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- include /usr/local/etc/nginx/sites-enabled/*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement