htaccess-for-nginx
htaccess-for-nginx copied to clipboard
Use
Our NGINX working dir is mounted to an NFS, so any realpath_root
will have a cryptic NFS route and therefor would never match the requested files path.
Either we switch to document_root
or add an additional check.
local rootpath = ngx.var.document_root..'/'