Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx nginx;
- worker_processes 1;
- error_log /var/log/nginx/error_log info;
- events {
- worker_connections 1024;
- use epoll;
- multi_accept on;
- }
- http {
- include /etc/nginx/mime.types;
- include /etc/nginx/conf.d/*.conf;
- default_type application/octet-stream;
- log_format main
- '$remote_addr - $remote_user [$time_local] '
- '"$request" $status $bytes_sent '
- '"$http_referer" "$http_user_agent" '
- '"$gzip_ratio"';
- #rewrite_log on;
- client_header_timeout 10m;
- client_body_timeout 10m;
- send_timeout 10m;
- connection_pool_size 256;
- client_header_buffer_size 4k;
- large_client_header_buffers 4 8k;
- request_pool_size 4k;
- gzip on;
- gzip_min_length 1100;
- gzip_buffers 4 8k;
- gzip_comp_level 2;
- gzip_proxied any;
- gzip_disable "MSIE [1-6].(?!.*SV1)";
- gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- output_buffers 1 32k;
- postpone_output 1460;
- sendfile on;
- tcp_nopush off;
- tcp_nodelay on;
- set_real_ip_from 127.0.0.1;
- real_ip_header X-Forwarded-For;
- keepalive_timeout 75 20;
- ignore_invalid_headers on;
- index index.php index.html index.htm default.html default.htm;
- map $scheme $fastcgi_https { ## Detect when HTTPS is used
- default off;
- https on;
- }
- upstream php5-fpm-sock {
- server unix:/var/run/php5-fpm.sock;
- }
- # SSL example
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement