Project

General

Profile

ipv4/ipv6 dual-stack running http/https

Added by chrisv about 15 years ago

Hi all,

I'm attempting to configure lighttpd to work in a dual-stack environment (IPv4 and IPv6). I've been able to get HTTP (port 80) running under this through the server.use-ipv6 = "enable" command. However, I seem to be running into an issue when configuring SSL.

My current configuration that runs with IPv4 is:

$SERVER["socket"] == "0.0.0.0:443" {
        ssl.engine = "enable" 
        ssl.pemfile = "/etc/server.pem" 
        ssl.use_sslv2 = "disable" 
        ssl.cipher-list = "DHE-RSA-AES256-SHA DHE-RSA-AES128-SHA EDH-RSA-DES-CBC3-SHA AES256-SHA AES128-SHA DES-CBC3-SHA DES-CBC3-MD5 RC4-SHA RC4-MD5" 
        server.document-root = "/www/pages/" 
}

What's the recommended way for modifying this $SERVER["socket"] declaration to support IPv6? Add server.use-ipv6 = "enable" to the declaration? Change 0.0.0.0 to [::]?

Thanks in advance for your suggestions!

Chris


Replies (2)

RE: ipv4/ipv6 dual-stack running http/https - Added by chrisv about 15 years ago

I just found [[http://redmine.lighttpd.net/projects/lighttpd-sandbox/wiki/Plugin_core]] that describes the usage of [::]. So that's half the question.

RE: ipv4/ipv6 dual-stack running http/https - Added by chrisv about 15 years ago

I ended up testing various combinations and figured out that adding server.use-ipv6="enable" inside the $SERVER["socket"] declaration worked.

Hope this archive shows up on Google and helps others. :-)

Chris

    (1-2/2)