Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure all built-in Lighttpd modules are initialized and available #115

Open
hanwong opened this issue Jul 26, 2024 · 2 comments
Open

Ensure all built-in Lighttpd modules are initialized and available #115

hanwong opened this issue Jul 26, 2024 · 2 comments
Labels
P3 Small fixes. Easy fixes to do in spare time.

Comments

@hanwong
Copy link

hanwong commented Jul 26, 2024

I got this error and server was crashed, when i modifed extraConfig like below from example codes.

extraConfig: server.modules += ("mod_expire") expire.url = ("/" => "access plus 1 seconds"),

IMG_E4EE980D013F-1

@birdofpreyru
Copy link
Owner

Well, I guess, mod_expire should be included into the build here —

set(PLUGIN_STATIC
PLUGIN_INIT(mod_alias)\n
PLUGIN_INIT(mod_dirlisting)\n
PLUGIN_INIT(mod_h2)\n
PLUGIN_INIT(mod_indexfile)\n
PLUGIN_INIT(mod_rewrite)\n
PLUGIN_INIT(mod_setenv)\n
PLUGIN_INIT(mod_staticfile)\n
)
, without it it is not initialized.

Also you may look into errorLog option, to get your hand on the underlying server logs with the exact reason of the crash.

@birdofpreyru birdofpreyru added the P3 Small fixes. Easy fixes to do in spare time. label Jul 26, 2024
@birdofpreyru birdofpreyru added the On Hold Cannot be resolved at the moment. label Nov 15, 2024
@gstrauss
Copy link

There is a list of modules that upstream lighttpd builds into the lighttpd server by default since they are small enough that building as separate shared objects takes up more space.

https://git.lighttpd.net/lighttpd/lighttpd1.4/src/branch/master/src/CMakeLists.txt#L846

For this ticket, please consider adding at least mod_expire, mod_redirect, and mod_access, and perhaps even mod_fastcgi and mod_scgi. None have external dependencies besides suggesting PCRE2 for mod_redirect, which is also a recommended dependency of mod_rewrite and mod_dirlisting, which you already include.

@birdofpreyru birdofpreyru removed the On Hold Cannot be resolved at the moment. label Jan 18, 2025
@birdofpreyru birdofpreyru changed the title Server exited with error, when i set "mod_expire" on extraConfig Ensure all built-in Lighttpd modules are initialized and available Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Small fixes. Easy fixes to do in spare time.
Projects
None yet
Development

No branches or pull requests

3 participants