1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

lang/php72 and lang/php73: improve documentation of php-fpm specific www.conf

If you only define a port to listen in www.conf, PHP defaults to listen
only to IPv6 ports on FreeBSD. On other OS it listens to IPv6 and IPv4.

Since upstream do not want to fix this [1], we add this special case to
the documentation.

Because the configuration file is a @sample it wont be updated for already
changed files. Therefore i do not bump PORTREVISION.

PR:		235141
Submitted by:	 Artyom Davidov <ard_1@mail.ru>

[1] https://bugs.php.net/bug.php?id=74166
This commit is contained in:
Torsten Zuehlsdorff 2019-01-26 16:32:28 +00:00
parent c20cced1b3
commit bb44095a30
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=491300
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- sapi/fpm/www.conf.in.orig 2019-01-26 15:54:27 UTC
+++ sapi/fpm/www.conf.in
@@ -27,10 +27,14 @@ group = @php_fpm_group@
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
+; '0.0.0.0:port' - to listen on a TCP socket to all IPv4 addresses on
+; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
+; Note: IPv4-mapped addresses are disabled by-default in
+; FreeBSD for security reasons;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000

View File

@ -0,0 +1,17 @@
--- sapi/fpm/www.conf.in.orig 2019-01-26 15:54:27 UTC
+++ sapi/fpm/www.conf.in
@@ -27,10 +27,14 @@ group = @php_fpm_group@
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
+; '0.0.0.0:port' - to listen on a TCP socket to all IPv4 addresses on
+; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
+; Note: IPv4-mapped addresses are disabled by-default in
+; FreeBSD for security reasons;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000