Gerald Schittenhelm
Gerald Schittenhelm
@proginter you are welcome to submit code to this repository. According to my experience with Lua integration in nginx, this is not directly possible. Using environment variables in rewrite rules...
@rkaiser0324 maybe not in this particular case, but there are instances where env vars are dynamically set and used in the same htaccess file, so ignoring it breaks the intended...
@rkaiser0324 it is possible in Lua to directly execute shell commands. Example: https://github.com/e404/htaccess-for-nginx/blob/a62ee2756782fff3c6531d62e5ba5e5ac3c6504d/htaccess.lua#L169 Using `io.popen()`, any environment variable can be output as well. This opens up several security concerns. Imagine,...
The script does in fact process subdirectories. You can also make incremental changes in subdirectories, overriding directives from parent directories, just like in Apache's implementation.
No further activity, closing the issue
Agree. If you want to invest time in this direction, please feel very welcome to do so!
Awesome @rkaiser0324, thanks for taking the time. @myrandor please test the updated script and give some feedback if things are working on your end.