Compare Pastes

Differences between the pastes #126468 (02.09.2019 14:21) and #195943 (16.06.2021 11:52).
1
user nginx nginx;
2
worker_processes 2;
3
4
error_log /var/log/nginx/error_log info;
5
6
timer_resolution 100ms;
7
worker_rlimit_nofile 8192;
8
worker_priority -5; #Увеличитвваем приоритет
9
error_log  /var/log/nginx/error.log info;
10
pid        /var/run/nginx.pid;
11
12
events {
13
    worker_connections 1024;
14
    use epoll;
15
}
16
17
http {
18
	include /etc/nginx/mime.types;
19
	default_type text/html;
20
21
	log_format main
22
		'$remote_addr - $remote_user [$time_local] '
23
		'"$request" $status $bytes_sent '
24
		'"$http_referer" "$http_user_agent" '
25
		'"$gzip_ratio"';
26
27
	client_header_timeout 10m;
28
	client_body_timeout 10m;
29
	send_timeout 10m;
30
31
	connection_pool_size 256;
32
	client_header_buffer_size 1k;
33
	large_client_header_buffers 4 2k;
34
	request_pool_size 4k;
35
36
	gzip off;
37
38
	output_buffers 1 32k;
39
	postpone_output 1460;
40
41
	sendfile on;
42
	server_tokens off;
43
	tcp_nopush on;
44
	tcp_nodelay on;
45
	keepalive_timeout 75 20;
46
	ignore_invalid_headers on;
47
	index index.html index.php index.htm;
48
49
server { 
50
	server_name _;
51
location ~ \.php$ {                                                                                                                                                                                                           
52
       try_files $uri =404;                                                                                                                                                                                                      
53
       fastcgi_split_path_info ^(.|\.php)(/.+)$;                                                                                                                                                                                 
54
       include /etc/nginx/fastcgi_params;                                                                                                                                                                                        
55
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                                                                                                                                                         
56
       fastcgi_intercept_errors on;                                                                                                                                                                                              
57
       fastcgi_pass unix:/tmp/php-cgi.socket;                                                                                                                                                                                    
58
       fastcgi_read_timeout 300;                                                                                                                                                                                                 
59
 }
60
 }
61
62
	include /etc/nginx/sites-enabled/*.conf;