I recently switched from Apache to nginx (thanx to @UFHH01
), details here https://talk.plesk.com/threads/seo-friendly-urls-after-switch-from-apache-to-nginx.342063.
Now my site works well. Unfortunately, I am not able to access the munin stats anymore, neither via default domain nor via IP of the server.
The XenForo software steps in and complains about a missing route to "/munin".
My vhost_nginx.conf of the default domain now looks like this, based on suggestion on https://www.scalescale.com/tips/nginx/monitor-nginx-munin/:
Did I miss something ?
Now my site works well. Unfortunately, I am not able to access the munin stats anymore, neither via default domain nor via IP of the server.
The XenForo software steps in and complains about a missing route to "/munin".
My vhost_nginx.conf of the default domain now looks like this, based on suggestion on https://www.scalescale.com/tips/nginx/monitor-nginx-munin/:
Code:
# munin configuration
location /munin {
alias /var/www/munin/;
index index.php index.html index.htm;
location ~* \.(png|jpg|jpeg|gif|ico)$ {
}
}
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
location /install/data/ {
internal;
}
location /install/templates/ {
internal;
}
location /(internal_data|library) {
internal;
}
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc|woff)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
Did I miss something ?