Feature #2274
closed$SERVER["socket"] doc
Description
Doc doesn't state what happens when IPA is omitted. It seems to bind to 0.0.0.0:port. This should be documented.
IMO it makes more sense to bind to server.bind.
http://redmine.lighttpd.net/wiki/lighttpd/Docs:Configuration
match on socket. Value must be on the format "ip:port", where ip is an IP address(optional) and port a port number. Only equal match (==) is supported. It also binds the daemon to this socket. Use this if you want to do IP/port-based virtual hosts.
Updated by stbuehler almost 13 years ago
- Target version changed from 1.4.29 to 1.4.x
Updated by gstrauss about 8 years ago
Suggested addition in bold
$SERVER["socket"]
match on socket. Value must be on the format "ip:port", where ip is an IP address (optional) and port a port number. If IP address is omitted, then use INADDR_ANY (0.0.0.0). Only equal match (==) is supported. It also binds the daemon to this socket. Use this if you want to do IP/port-based virtual hosts.
(Hoping for some feedback before editing the wiki. I plan to edit the wiki with the above next time I happen upon this ticket.)
(Any interest in a patch that if server.use-ipv6 = "enabled", use in6addr_any ([::]) instead of INADDR_ANY when only port is specified?)
Updated by stbuehler about 8 years ago
- Category changed from core to documentation
Updated by gstrauss about 8 years ago
- Status changed from New to Fixed
Updated wiki. Extended my change to note that if IP is omitted and if server.use-ipv6 = "enabled" inside this block, use in6addr_any ([::])
Also available in: Atom