New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Migrating From Lighttpd to nginx - LUA (mod_magnet) Support?
LUA scripts in Lighttpd are easy. Enable mod_magnet and put this in your config:
magnet.attract-physical-path-to = ("/etc/lighttpd/somecode.lua")
.
The LUA code in question is similar-to/based-off this:
http://whmcr.com/2009/06/19/lighttpd-mod_security-via-mod_magnet/
How do I accomplish this in nginx without compiling everything from source? I'm running Debian 8 and nginx/1.6.2.
Comments
You can try OpenResty which is based on nginx. It contains lua and there are binary releases. Keep in mind that you still need to update your script to work with nginx/OpenResty instead of lighttpd.
Thanks Wirrkopf. Think I'm just going to stick with Lighttpd for now.
After messing around with nginx config for a few days it's a real pain in the ass. No variables in configs so setting up templates isn't an option. Syntax isn't as clean. It's a shame because I've read great things about, performance seems good. Maybe I'm just stuck in my old ways.