Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Munin setup help
PostPosted: Sat Jun 22, 2013 9:46 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
Trying to get munin working at http://myip/munin but I'm getting a 404. Currently, I have several virtual hosts setup and working fine, so I added a "default" config file in sites-available with the following:

Code:
server {
    server_name myIP (removed);
    access_log /srv/www/default/logs/access.log;
    error_log /srv/www/default/logs/error.log;
    root /srv/www/default/public_html;

    location / {
        index index.html index.htm index.php;
    }
   
    # serve static files directly
        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
            access_log        off;
            expires           30d;
    }

    location ~ \.php$ {
   try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/run/php5-fpm/defaultsite.socket;
        fastcgi_index index.php;
    }

    # path to munin files
    location /munin/ {
          alias /var/cache/munin/www/;
    }

}


I wasn't using a default site before so I set one up and it serves pages out of the public_html folder fine, it is just the munin alias I'm having trouble with. The code above is basically the same I'm using in the other sites with the change of the server_name and the munin location block.

http://IP shows index.html I put in there and http://IP/munin shows 404.

It appears that since I'm setting the root up top, the alias isn't going to work with that root already being set. Any way I can get this working?


Top
   
 Post subject: Re: Munin setup help
PostPosted: Sun Jun 23, 2013 4:45 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Looks like you're missing the / off the end of the url it should be http://ip/munin/

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Re: Munin setup help
PostPosted: Sun Jun 23, 2013 8:27 am 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
obs wrote:
Looks like you're missing the / off the end of the url it should be http://ip/munin/


Still gives me 404.

Error log shows like it isn't even reading the alias location block.

Code:
2013/06/23 08:23:20 [error] 20745#0: *58120 open() "/srv/www/default/public_html/munin" failed (2: No such file or directory), client: (IP here), server: (IP here), request: "GET /munin HTTP/1.1", host: "(IP here)"
2013/06/23 08:23:50 [error] 20742#0: *58172 open() "/srv/www/default/public_html/munin/index.html" failed (2: No such file or directory), client: (IP here), server: (IP here), request: "GET /munin/ HTTP/1.1", host: "(IP here)"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group