Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thank you!!

share|improve this question
    
do you have a location and an alias in your nginx configuration for monitorix? what does the nginx access.log and error.log say when you try to access it? –  LinuxDevOps Apr 24 at 14:49

1 Answer 1

Nginx don't support CGI. You can try SimpleCGI, but i recommend install Apache for Monitorix.

share|improve this answer
    
I am already using fast-cgi with nginx and it works flawlessly, so that's not a problem... –  DrKarl Feb 5 '11 at 16:50
    
Nginx support FastCGI, but not support CGI. en.wikipedia.org/wiki/FastCGI en.wikipedia.org/wiki/Common_Gateway_Interface –  alvosu Feb 5 '11 at 17:01
    
@alvosu It is not a problem. Every CGI script can be run using FastCGI process manager. Apache for this job is overkill. –  VBart Aug 15 '13 at 13:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.