Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www;
- worker_processes auto;
- worker_rlimit_nofile 100000;
- events {
- worker_connections 4000;
- use kqueue;
- multi_accept on;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- #access_log /var/log/nginx/access.log;
- access_log off;
- error_log /var/log/nginx/error.log crit;
- sendfile_max_chunk 512k;
- open_file_cache max=5000 inactive=5m;
- open_file_cache_valid 2m;
- open_file_cache_min_uses 1;
- open_file_cache_errors on;
- sendfile on;
- gzip on;
- gzip_vary on;
- #gzip_min_length 10240;
- gzip_proxied expired no-cache no-store private auth;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_disable "MSIE[1-6]\.";
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- types_hash_max_size 2048;
- send_timeout 60;
- keepalive_timeout 100;
- keepalive_requests 100000;
- server_tokens Off;
- client_body_buffer_size 128k;
- client_header_buffer_size 3m;
- large_client_header_buffers 4 256k;
- client_body_timeout 3m;
- client_header_timeout 3m;
- server {
- tcp_nopush on;
- tcp_nodelay on;
- listen 80 default rcvbuf=16k;
- server_name localhost helix.local;
- root /usr/local/www/nginx;
- index index.php index.html index.htm;
- rewrite_log on;
- reset_timedout_connection on;
- location / {
- try_files $uri/ $uri $uri/index.php /index.php?$query_string;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/local/www/nginx-dist;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- #fastcgi_read_timeout 300;
- fastcgi_pass unix:/var/run/php-fpm.sock;
- fastcgi_index /index.php;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- include fastcgi_params;
- fastcgi_connect_timeout 60;
- fastcgi_send_timeout 180;
- fastcgi_read_timeout 180;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 16k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_max_temp_file_size 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement