Compare Pastes

Differences between the pastes #126474 (02.09.2019 16:16) and #175169 (21.04.2021 14:42).
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
	root /var/www/localhost/htdocs;
52
	
53
location ~* /runy {                                                                                                                                                                                       
54
       root /var/www/runy/htdocs;                                                                                                                                                                   
55
       try_files $uri /runy/index.html?$query_string;                                                                                                                                                          
56
   }
57
	
58
location ~ \.php$ {                                                                                                                                                                                                           
59
       try_files $uri =404;                                                                                                                                                                                                      
60
       fastcgi_split_path_info ^(.|\.php)(/.+)$;                                                                                                                                                                                 
61
       include /etc/nginx/fastcgi_params;                                                                                                                                                                                        
62
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                                                                                                                                                         
63
       fastcgi_intercept_errors on;                                                                                                                                                                                              
64
       fastcgi_pass unix:/run/php-fpm.socket;                                                                                                                                                                                    
65
       fastcgi_read_timeout 300;                                                                                                                                                                                                 
66
 }
67
 }
68
69
	include /etc/nginx/sites-enabled/*.conf;