Ticket #493 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

server.modules is unpopulated on startup

Reported by: michalg@gmail.com Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.9
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

This is for version 1.4.9.

Unless server.modules is set to contain at lease one valid module name, default modules are not loaded.

To recreate, download 1.4.9, ./configure, make, make install and follow these steps (starting at $PREFIX):

% cat conf
server.dir-listing = "enable"
dir-listing.activate = "enable"
server.document-root = "/home/mikeg/public/"
 
server.port = 3000 
mimetype.assign = (
  ".html" => "text/html", 
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png"
)
 
index-file.names = ( "index.html" )
% sbin/lighttpd -t -f conf
Syntax OK
% sbin/lighttpd -p -f conf
config {
    var.PID              = 17361
    server.dir-listing   = "enable"
    dir-listing.activate = "enable"
    server.document-root = "/home/mikeg/public/"
    server.port          = 3000
    mimetype.assign      = (
        ".html" => "text/html",
        ".txt"  => "text/plain",
        ".jpg"  => "image/jpeg",
        ".png"  => "image/png",
        # 4
    )
    index-file.names     = ("index.html")
 
}

% sbin/lighttpd -D -f conf 
2006-02-03 14:16:14: (server.c.725) WARNING: unknown config-key: server.dir-listing (ignored) 
2006-02-03 14:16:14: (server.c.725) WARNING: unknown config-key: dir-listing.activate (ignored) 
2006-02-03 14:16:14: (server.c.725) WARNING: unknown config-key: index-file.names (ignored) 
2006-02-03 14:16:14: (log.c.75) server started 
2006-02-03 14:16:16: (server.c.1082) [note] graceful shutdown started 
2006-02-03 14:16:16: (log.c.135) server stopped 

% vim conf
% cat conf
mikeg@adanac:~/bin/lightttpd >cat conf
server.modules = ( "mod_indexfile" )
server.dir-listing = "enable"
dir-listing.activate = "enable"
server.document-root = "/home/mikeg/public/"

server.port = 3000

mimetype.assign = (
  ".html" => "text/html", 
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png"
)

index-file.names = ( "index.html" )
% sbin/lighttpd -p -f conf
config {
    var.PID              = 17762
    server.modules       = ("mod_indexfile", "mod_indexfile", "mod_dirlisting", "mod_staticfile")
    server.dir-listing   = "enable"
    dir-listing.activate = "enable"
    server.document-root = "/home/mikeg/public/"
    server.port          = 3000
    mimetype.assign      = (
        ".html" => "text/html",
        ".txt"  => "text/plain",
        ".jpg"  => "image/jpeg",
        ".png"  => "image/png",
        # 4
    )
    index-file.names     = ("index.html")

}
% sbin/lighttpd -D -f conf
2006-02-03 14:31:59: (log.c.75) server started 


Attachments

Change History

02/08/2006 12:42:39 PM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.

fixed in changeset [986]


Add/Change #493 (server.modules is unpopulated on startup)




Change Properties
Action