I have a VPS serving a website using nginx and jetty and everything works fine. The website is accesible through my .com domain.
I have installed monitorix and I want to access monitorix web user interface which should be served as well by nginx (I don't want to install another server like lighttpd or apache just for monitorix). In the monitorix documentation it says that it should be accessible through http://localhost/monitorix. I have tried www.mydomain.com/monitorix but it shows my custom 404 page, and I have also tried to access http://localhost/monitorix with both curl and lynx and I get the 404 page as well.
How can I configure nginx to serve monitorix WUI? It is ok if I configure it to serve it only to localhost and I can create an SSH tunnel from my computer to see the page and graphic statics.