Skrevet av Emne: Lighttpd: Bind to all IPv4 and IPv6 interfaces  (Lest 3508 ganger)

ATC

  • Gjest
Lighttpd: Bind to all IPv4 and IPv6 interfaces
« på: 11. Oktober 2010, 20:30 pm »
  • [applaud]0
  • [smite]0
  • When configuring Lighttpd I can use "server.bind" to specify either an IPv4 address or an IPv6 address, but not both. How can I bind to both at the same time?



    ATC

    • Gjest
    [Solved] Lighttpd: Bind to all IPv4 and IPv6 interfaces
    « Svar #1 på: 11. Oktober 2010, 20:30 pm »
  • [applaud]0
  • [smite]0
  • First enable IPv6 support, then bind to the IPv6 "ANY" address which is "::", then finally add the IPv4 "ANY" address 0.0.0.0 like this:

    server.use-ipv6 = "enable"
    server.bind = "::"
    $SERVER["socket"] == "0.0.0.0:80" {
      # Any IPv4 specific options go here
    }