Lighttpd: Enable IPv6 Support
Lighttpd supports both IPv6 and IPv4 protocol out of box. You need to compile lighttpd with IPv6 support. The server.use-ipv6 option bind to the IPv6 socket. You need to bind to both IPv6 and IPv4 using the following syntax.
First, see compile-time features (find out if IPv6 is enabled or not), enter:
# lighttpd -V
Sample output:
Build-Date: Sep 30 2008 06:18:08 Event Handlers: + select (generic) + poll (Unix) + rt-signals (Linux 2.4+) + epoll (Linux 2.6) - /dev/poll (Solaris) - kqueue (FreeBSD) Network handler: + sendfile Features: + IPv6 support + zlib support + bzip2 support + crypt support + SSL Support + PCRE support - mySQL support - LDAP support - memcached support - FAM support - LUA support - xml support - SQLite support - GDBM support
You must see + IPv6 support enabled. If not recompile lighttpd with IPv6 support. Once compiled open lighttpd.conf file:
# vi lighttpd.conf
To enable IPV6 and IPV4 together, enter:
server.use-ipv6 = "enable"
server.port = 80
$SERVER["socket"] == "0.0.0.0:80" {
# add your stuff
#
}
Save and close the file. Restart lighttpd:
# service lighttpd restart
E-mail this to a Friend
Printable Version
You may also be interested in other helpful articles:
- Understanding the IPv6 (Internet Protocol, version 6)
- Linux: How to disable the IPv6 protocol
- Linux IPv6 Default Route Not Working
- How to upgrade lighttpd tar ball (source code) installation
- Download of the day: Lighttpd web server 1.4.17
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: ipv6, ipv6 addresses, ipv6 webserver, lighttpd, lighttpd ipv6, lighttpd server.use-ipv6, linux ipv6, sendfile, server port, server socket, UNIX



Recent Comments
Today ~ 12 Comments
Today ~ 8 Comments
Today ~ 185 Comments
Today ~ 15 Comments
Today ~ 3 Comments