Munin under nginx

Discussion in 'Installation/Configuration' started by servidoresadmin.com, Mar 4, 2013.

  1. Hello,

    I usually runs munin under apache and it's installation is very easy. There's a howto and only four steps is needed.

    Do you know if there's a howto to install munin under nginx on ispconfig 3 under debian?

    Very thanks,

    Servidores administrados
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You can set up an alias in your vhost configuration like this:

    Code:
                    location /munin {
                           alias /var/cache/munin/www;
                           auth_basic "Restricted";
                           auth_basic_user_file /var/cache/munin/.htpasswd;
                           location ~* ^/munin/(.+\.(jpg|jpeg|gif|css|png|js|ico|xml|txt))$ {
                                    alias /var/cache/munin/www/$1;
                           }
                    }
     
  3. It is not running

    Hi Falko,

    Thanks for your reply, but it is not running. I think there's a bad symbol on code, but this is not runnig, u receive error 500 under nginx:

    location /munin {
    alias /var/cache/munin/www;
    auth_basic "Restricted";
    auth_basic_user_file /var/cache/munin/.htpasswd;
    location / { ^/munin/(.+\.(jpg|jpeg|gif|css|png|js|ico|xml|txt))$ {
    alias /var/cache/munin/www/$1;
    }
    }

    After uptating location / {

    It is not running:

    500 Internal Server Error
    nginx/1.2.7

    Thanks,
    Servidores administradoshttp://www.servidoresadmin.com
     
    Last edited: Mar 5, 2013
  4. Finally solved and running

    Hi, Falko,

    Finally I solved and now it's running:

    Under Ispconfig | Domain| Options | nginx Directives:

    ______________________________________________

    location /munin/ {
    alias /var/cache/munin/www/;
    index index.html;
    }
    ______________________________________________

    It's up and running now.

    Thanks,

    Servidores Dedicados Administrados
     

Share This Page