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

runtime error: nil realpath_root

Open donl opened this issue 1 year ago • 0 comments

When the realpath_root does not exist on the filesystem, I am getting a HTTP 500 (instead of a 404). Here is the relevant information from the nginx log.

[error] 30#30: *6 lua entry thread aborted: runtime error: /etc/nginx/lua/htaccess.lua:95: attempt to concatenate field 'realpath_root' (a nil value)

donl avatar Jun 09 '23 00:06 donl