Either create a second location block (location /nagios {...) or update the folder name on the target device to match the existing. It will be difficult to catch absolutely everything with rewrites.
↧