listen directive

Ruslan Ermilov ru at nginx.com
Thu Jul 25 09:13:12 UTC 2013


On Thu, Jul 25, 2013 at 04:34:53AM -0400, drook wrote:
> Thanks a lot, this is much clearer. Actually, 'absent "listen", or "listen"
> without both a port and address, assume
> the default values for the missing parts' explains everything, and I think
> the manual would be more clear mentioning this explicitly (still imo).

The documentation

http://nginx.org/en/docs/http/ngx_http_core_module.html#listen

says, in particular:

: If only _address_ is given, the port 80 is used.
: 
: If directive is not present then either the *:80 is used if nginx
: runs with superuser privileges, or *:8000 otherwise. 



More information about the nginx mailing list