Skip to content

Commit 2bc1164

Browse files
committed
Remove port 9000 sockets and change over to unix sockets
1 parent 3bd7c9c commit 2bc1164

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

install/deb/php-fpm/dummy.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
[wwww]
44
listen = /run/php/php%backend_version%-fpm.dummy.sock
55
listen.owner = hestiamail
6-
listen.group = www-data
6+
listen.group = hestiamail
77
listen.mode = 0660
88

99
;"hestiamail" user created to prevent users from abusing this config
1010
user = hestiamail
11-
group = www-data
11+
group = hestiamail
1212

1313
pm = ondemand
1414
pm.max_children = 4

install/deb/php-fpm/www.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
; origin-src: deb/php-fpm/www.conf
22

33
[www]
4-
listen = 127.0.0.1:9000
4+
listen = /run/php/www.sock;
55
listen.allowed_clients = 127.0.0.1
66

77
;"hestiamail" user created to prevent users from abusing this config
88
user = hestiamail
9-
group = www-data
9+
group = hestiamail
1010

1111
pm = ondemand
1212
pm.max_children = 4

install/deb/templates/mail/nginx/snappymail.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ server {
4343

4444
fastcgi_index index.php;
4545
fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
46-
fastcgi_param SCRIPT_FILENAME $request_filename;
46+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
4747

48-
fastcgi_pass 127.0.0.1:9000;
48+
fastcgi_pass unix:/run/php/www.sock;
4949
}
5050
}
5151

install/deb/templates/mail/nginx/snappymail.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ server {
3535
include /etc/nginx/fastcgi_params;
3636
3737
fastcgi_index index.php;
38-
fastcgi_param SCRIPT_FILENAME $request_filename;
38+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
3939
40-
fastcgi_pass 127.0.0.1:9000;
40+
fastcgi_pass unix:/run/php/www.sock;
4141
}
4242
}
4343

install/deb/templates/mail/nginx/web_system.stpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ server {
3838

3939
fastcgi_index index.php;
4040
fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
41-
fastcgi_param SCRIPT_FILENAME $request_filename;
41+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
4242

43-
fastcgi_pass 127.0.0.1:9000;
43+
fastcgi_pass unix:/run/php/www.sock;
4444
}
4545
}
4646

install/deb/templates/mail/nginx/web_system.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ server {
3030
include /etc/nginx/fastcgi_params;
3131
3232
fastcgi_index index.php;
33-
fastcgi_param SCRIPT_FILENAME $request_filename;
33+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
3434
35-
fastcgi_pass 127.0.0.1:9000;
35+
fastcgi_pass unix:/run/php/www.sock;
3636
}
3737
}
3838

0 commit comments

Comments
 (0)