-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphp7-fpm.site.conf
61 lines (56 loc) · 1.81 KB
/
php7-fpm.site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[site_1]
listen = /var/run/php7-fpm.site.sock1
listen.allowed_clients = 0.0.0.0
listen.mode = 0666
user = www-data
group = www-data
catch_workers_output = yes
clear_env = no
pm = static
pm.max_children = 20
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 20
pm.max_requests = 1000
request_terminate_timeout = 1200
;ENV
access.log = /proc/self/fd/2
php_admin_value[error_log] = /var/www/site/DockerLocal/logs/php_error_log.log
php_admin_value[session.save_path] = memcached:11211
php_admin_value[session.save_handler] = memcached
php_admin_value[session.use_cookies] = 1
php_admin_value[session.cookie_secure] = 1
php_admin_value[session.use_only_cookies] = 1
php_admin_value[session.cookie_httponly] = 1
php_admin_value[session.entropy_length] = 32
php_admin_value[session.entropy_file] = /dev/urandom
php_admin_value[session.hash_function] = sha256
php_admin_value[session.hash_bits_per_character] = 5
[site_2]
listen = /var/run/php7-fpm.site.sock2
listen.allowed_clients = 0.0.0.0
listen.mode = 0666
user = www-data
group = www-data
catch_workers_output = yes
clear_env = no
pm = static
pm.max_children = 20
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 20
pm.max_requests = 1000
request_terminate_timeout = 1200
;ENV
access.log = /proc/self/fd/2
php_admin_value[error_log] = /var/www/site/DockerLocal/logs/php_error_log.log
php_admin_value[session.save_path] = memcached:11211
php_admin_value[session.save_handler] = memcached
php_admin_value[session.use_cookies] = 1
php_admin_value[session.cookie_secure] = 1
php_admin_value[session.use_only_cookies] = 1
php_admin_value[session.cookie_httponly] = 1
php_admin_value[session.entropy_length] = 32
php_admin_value[session.entropy_file] = /dev/urandom
php_admin_value[session.hash_function] = sha256
php_admin_value[session.hash_bits_per_character] = 5