12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- user www-data;
- worker_processes auto;
- error_log stderr error;
- worker_rlimit_nofile 200000;
- events {
- worker_connections 16384;
- multi_accept off;
-
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log off;
- server_tokens off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- keepalive_disable none;
- keepalive_requests 10000;
- #the bench don't use any static file
- #open_file_cache max=2000 inactive=20s;
- #open_file_cache_valid 60s;
- #open_file_cache_min_uses 5;
- #open_file_cache_errors off;
- #FastCGI optimizations
- fastcgi_buffers 256 16k;
- fastcgi_buffer_size 128k;
- fastcgi_connect_timeout 30s;
- fastcgi_send_timeout 60s;
- fastcgi_read_timeout 60s;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- reset_timedout_connection on;
- server_names_hash_bucket_size 100;
- upstream fastcgi_backend {
- server unix:/var/run/php/php7.3-fpm.sock;
- keepalive 40;
- }
- server {
- listen 8080;
- server_name localhost;
- root /limonade/;
- index index.php;
- location / {
- #try_files $uri $uri/ /index.php?$uri&$args;
- fastcgi_pass fastcgi_backend;
- fastcgi_keep_conn on;
- fastcgi_param SCRIPT_FILENAME $document_root/index.php;
- fastcgi_param PATH_INFO $uri;
- include /etc/nginx/fastcgi_params;
- }
- }
- }
|