Httpd Listen: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= =Internal= * httpd Configuration#Directives") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://httpd.apache.org/docs/2.4/mod/mpm_common.html#listen | |||
=Internal= | =Internal= | ||
* [[httpd Configuration#Directives]] | * [[httpd Configuration#Directives]] | ||
=Multiple Occurrences= | |||
If the <code>Listen</code> directive is specified multiple times, possibly in different configuration files like <code>httpd.conf</code> and <code>ssl.conf</code>, it will work find as long as it configures to bind the server on '''different ports'''. However, if more than one <code>Listen</code> directives instruct the server to listen '''on the same port''', the server will fail to start with a message similar to: | |||
<syntaxhighlight lang='text'> | |||
Nov 17 16:20:33 pkb.local httpd[1669]: (98)Address already in use: AH00072: make_sock: could not bind to address 1.2.3.4:443 | |||
Nov 17 16:20:33 pkb.local httpd[1669]: no listening sockets available, shutting down | |||
</syntaxhighlight> |
Latest revision as of 00:33, 18 November 2021
External
Internal
Multiple Occurrences
If the Listen
directive is specified multiple times, possibly in different configuration files like httpd.conf
and ssl.conf
, it will work find as long as it configures to bind the server on different ports. However, if more than one Listen
directives instruct the server to listen on the same port, the server will fail to start with a message similar to:
Nov 17 16:20:33 pkb.local httpd[1669]: (98)Address already in use: AH00072: make_sock: could not bind to address 1.2.3.4:443
Nov 17 16:20:33 pkb.local httpd[1669]: no listening sockets available, shutting down