Httpd Listen: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 6: Line 6:


* [[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