Project

General

Profile

Actions

Feature #2274

closed

$SERVER["socket"] doc

Added by Olaf-van-der-Spek over 13 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
documentation
Target version:
-
ASK QUESTIONS IN Forums:

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.

Actions #1

Updated by stbuehler almost 13 years ago

  • Target version changed from 1.4.29 to 1.4.x
Actions #2

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?)

Actions #3

Updated by stbuehler about 8 years ago

  • Category changed from core to documentation
Actions #4

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 ([::])

Actions #5

Updated by stbuehler almost 8 years ago

  • Target version deleted (1.4.x)
Actions

Also available in: Atom