mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
parent
69dcf98c1c
commit
76a8d9f041
1 changed files with 28 additions and 1 deletions
|
|
@ -25,7 +25,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\"
|
||||
.Dd January 21, 2026
|
||||
.Dd September 4, 2026
|
||||
.Dt NGINX 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
.Op Fl c Ar file
|
||||
.Op Fl e Ar file
|
||||
.Op Fl g Ar directives
|
||||
.Op Fl l Ar address
|
||||
.Op Fl p Ar prefix
|
||||
.Op Fl s Ar signal
|
||||
.Sh DESCRIPTION
|
||||
|
|
@ -66,6 +67,11 @@ Set global configuration directives.
|
|||
See
|
||||
.Sx EXAMPLES
|
||||
for details.
|
||||
.It Fl l Ar address
|
||||
Set a control socket listen address.
|
||||
See
|
||||
.Sx CONTROL SOCKET
|
||||
for details.
|
||||
.It Fl p Ar prefix
|
||||
Set the prefix path.
|
||||
The default value is
|
||||
|
|
@ -165,6 +171,27 @@ events {
|
|||
debug_connection 127.0.0.1;
|
||||
}
|
||||
.Ed
|
||||
.Sh CONTROL SOCKET
|
||||
To enable a control socket, reconfigure
|
||||
.Nm
|
||||
to build with control API:
|
||||
.Pp
|
||||
.Dl "./configure --with-control-api ..."
|
||||
.Pp
|
||||
and then set the control socket listen address, for example:
|
||||
.Bd -literal -offset indent
|
||||
nginx -c ~/mynginx.conf -l 127.0.0.1:8888
|
||||
.Ed
|
||||
.Pp
|
||||
IPv6 addresses should be enclosed in square brackets:
|
||||
.Bd -literal -offset indent
|
||||
nginx -c ~/mynginx.conf -l [::1]:8888
|
||||
.Ed
|
||||
.Pp
|
||||
It is also possible to set a UNIX-domain socket:
|
||||
.Bd -literal -offset indent
|
||||
nginx -c ~/mynginx.conf -l unix:/path/to/socket
|
||||
.Ed
|
||||
.Sh ENVIRONMENT
|
||||
The
|
||||
.Ev NGINX
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue