Compare Pastes

Differences between the pastes #126465 (02.09.2019 12:16) and #258940 (15.02.2022 00:24).
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
        location ~ \.php$ {
51
                   # Проверка на несуществующие скрипты или ошибку 404
52
                   # Без этой строки nginx будет сразу отправлять любые запросы, оканчивающиеся на .php, в php-frm
53
                   try_files $uri =404;
54
                   include /etc/nginx/fastcgi.conf;
55
                   fastcgi_pass unix:/run/php-fpm.socket;
56
       }
57
}
58
59
	include /etc/nginx/sites-enabled/*.conf;