Project

General

Profile

Cannot load plugin mod_indexfile more than once

Added by smsti over 10 years ago

Hello,

I moved from apache to lighttpd. Everything what do I need from web server, lighttpd can do for me as well. I feel satisfied with lighttpd, since it takes less memory, less CPU and serves faster. I also found out configuration file less difficult to use than apache's httpd.conf.

I've a small issue. With my configuration (attached), server complains mod_indexfile is being loaded more than once. However I can't figure how it is possible.

I also regret there is no rc.d init script which can be used within generic shell on generic unix (linux).

/usr/local/etc/lighttpd# 2013-09-20 12:26:28: (plugin.c.131) Cannot load plugin mod_indexfile more than once, please fix your config (we may not accept such configs in future releases 

/usr/local/etc/lighttpd# grep -R indexfile *

modules.conf:## "mod_indexfile", "mod_dirlisting", "mod_staticfile" 
modules.conf:  "mod_indexfile",

/usr/local/etc/lighttpd# grep -R modules.conf *

conf.d/cgi.conf:##       next line. (see modules.conf)
lighttpd.conf:include "modules.conf" 

Replies (2)

RE: Cannot load plugin mod_indexfile more than once - Added by stbuehler over 10 years ago

Hm, lighttpd does prepend mod_indexfile to the module list by default. Although it should check whether indexfile is in the list already, but maybe the check is broken...

I recommend you don't load the auto-loaded modules manually ("mod_indexfile", "mod_dirlisting", "mod_staticfile").

RE: Cannot load plugin mod_indexfile more than once - Added by gstrauss almost 8 years ago

The check for auto-loaded modules was incorrect and has been fixed. The fix will be part of the upcoming 1.4.40 release of lighttpd.

    (1-2/2)