[Solved] Is it possible to access lighttpd.conf config values from within mod_magnet? (=> No)
Added by lighttrick 2 months ago
Title says it all!
Replies (3)
RE: Is it possible to access lighttpd.conf config values from within mod_magnet? - Added by gstrauss 2 months ago
No.
You are asking a question that is a guess at a solution. The answer is "No.". However, you have not shared information about the problem you are trying to solve.
You can use lua or any scripting or programming language you like to produce lighttpd.conf. lighttpd.conf is parsed at lighttpd startup. To change the conditions in lighttpd.conf, you need to restart lighttpd, which can be done gracefully with signal SIGUSR1.
RE: [Solved] Is it possible to access lighttpd.conf config values from within mod_magnet? (=> No) - Added by lighttrick 2 months ago
I think that generating lighttpd.conf dynamically is the way to go. I just wanted to use lighttpd.conf as the only config source for custom behavior for a mod_magnet script that can be modified as necessary.
Thanks for answering.
RE: [Solved] Is it possible to access lighttpd.conf config values from within mod_magnet? (=> No) - Added by gstrauss 2 months ago
for custom behavior for a mod_magnet script that can be modified as necessary.
mod_magnet scripts provide huge amounts of flexibility. mod_magnet scripts can be modified and lighttpd will detect the change and will reload the script for the next request. Restarting lighttpd is not necessary to pick up changes to mod_magnet scripts. Configure lighttpd.conf to run your mod_magnet script. Modify your mod_magnet script as needed.