There are some other core options we can set:
server.bind = "[Hostname, IP address or UNIX socket]".
This directive tells Lighttpd to bind only to specific interfaces. This may be useful if you have more than one network interface and want to bind Lighttpd only on one of them. Valid examples are:
server.bind = "myserver.com" # binds to the IP found at myserver.com server.bind = "192.168.1.81" # binds the network interface at # 192.168.1.81 server.bind = "/tmp/lighttpd.socket" # binds to a UNIX named socket
By default, Lighttpd binds to all network interfaces it can find. Usually, you will have only one interface. Binding to a UNIX named socket can be useful to proxy Lighttpd by some other server.
Setting server.port
can change the port Lighttpd listens at. This might be useful if you cannot run Lighttpd with sufficient permissions to open ports below 1024.
server.port = 1234
The default port for unencrypted HTTP is 80, the alternate unprivileged port is 8080.
server.tag...