HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Munin under nginx (http://www.howtoforge.com/forums/showthread.php?t=60809)

servidoresadmin.com 4th March 2013 21:50

Munin under nginx
 
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

falko 5th March 2013 15:23

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;
                      }
                }


servidoresadmin.com 5th March 2013 16:23

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

servidoresadmin.com 6th March 2013 00:36

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


All times are GMT +2. The time now is 00:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.