htaccess-for-nginx icon indicating copy to clipboard operation
htaccess-for-nginx copied to clipboard

Error when trying to run htaccess for nginx, nginx says unknown directive: rewrite_by_lua_file

Open rhys19 opened this issue 3 years ago • 1 comments

nginx: [emerg] unknown directive "rewrite_by_lua_file" in /etc/nginx/sites-enabled/domain.com.conf:6 nginx: configuration file /etc/nginx/nginx.conf test failed

rhys19 avatar Feb 16 '22 07:02 rhys19

It sounds like you don't have the Lua module installed into nginx. Check the README for details.

rkaiser0324 avatar Feb 16 '22 14:02 rkaiser0324