Archive for the Lighttpd Category

Enable lighttpd status and config pages

Posted on October 4, 2009 with No Comments

To enable lighttpd status and config pages, you need to edit lighttpd.conf

vi /etc/lighttpd/lighttpd.conf

Find

#                                "mod_status",

Replace with

                                "mod_status",

Find

#### status module
#status.status-url          = "/server-status"
#status.config-url          = "/server-config"

Replace with

#### status module
status.status-url          = "/server-status"
status.config-url          = "/server-config"

Restart lighttpd

/etc/init.d/lighttpd restart

Now you can visit urls like

http://your-ip/server-config

and

http://your-ip/server-status

To view lighttpd status and configuration.

lighttpd_config

lighttpd_status

Tags:

Category: Lighttpd

(response.c.544) file not found … or so: Too many open files

Posted on August 17, 2009 with No Comments

A site running lighttpd stopped working with 500 internal server error.

On checking lighttpd log, found

2009-08-17 04:04:58: (response.c.544) file not found ... or so:  Too many open files /4032/046a.jpg ->
2009-08-17 04:04:58: (response.c.544) file not found ... or so:  Too many open files /4032/043a.jpg ->
2009-08-17 04:04:58: (response.c.544) file not found ... or so:  Too many open files /4032/041a.jpg ->
2009-08-17 04:04:58: (response.c.544) file not found ... or so:  Too many open files /4032/052a.jpg ->

The error is fixed by editing /etc/lighttpd/lighttpd.conf and adding

server.max-fds = 8192