I have installed munin (for the time being available here: http://brailsford.xyz/munin ) the problem is that whilst the core loads from /var/cache/munin/www - none o the static files load.
I have the following in my nginx config:
location /munin/static/ {
alias /etc/munin/static/;
expires modified +1w;
autoindex on;
}
location /munin/ {
#auth_basic "Restricted";
# Create the htpasswd file with the htpasswd tool.
#auth_basic_user_file /etc/nginx/htpasswd;
alias /var/cache/munin/www/;
expires modified +310s;
}
AutoIndex is there for a proof: the folder is accessible: https://brailsford.xyz/munin/static/
However, clicking on a file in that folder gives a 404, and the nginx error log shows this:
[error] 22570#0: *50 open() "/data/www/brailsford.xyz/munin/static/style-new.css" failed (2: No such file or directory)
/data/www/brailsford.xyz is my root specified in the overall server clause.
Any suggestions would be greatly appreciated :)
EDIT 1:
location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
expires 1w;
}