Monit appears to be working on command line but get 404 'There is no service by that name' in web interface
I had this error when I misconfigured my Nginx. After reading the wiki, I resolved monit 404 errors. Here's my /etc/nginx/conf.d/monit.conf:
server {
listen 80;
server_name my.server.name;
location /monit/ {
allow 127.0.0.1;
allow 192.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:2812;
proxy_set_header Host $host;
rewrite ^/monit/(.*) /$1 break;
proxy_ignore_client_abort on;
}
}