Changes between Version 123 and Version 124 of PuffinServer


Ignore:
Timestamp:
04/14/14 12:16:22 (3 years ago)
Author:
chris
Comment:

Fix for php-fpm stats updated, see ticket:707#comment:33

Legend:

Unmodified
Added
Removed
Modified
  • PuffinServer

    v123 v124  
    237237==== nginx config changes ==== 
    238238 
    239 To get the nginx and php-fpm munin stats working the following code starting with the comment needs adding to {{{/var/aegir/config/server_master/nginx.conf}}} in the nginx default server section: 
     239To get the php-fpm munin stats working the following code starting with the comment needs adding to {{{/var/aegir/config/server_master/nginx.conf}}} in the nginx default server section: 
    240240 
    241241{{{ 
     
    249249  server_name  _; 
    250250  location / { 
     251     expires 60s; 
     252     add_header Cache-Control "public, must-revalidate, proxy-revalidate"; 
     253     add_header Access-Control-Allow-Origin *; 
    251254     root   /var/www/nginx-default; 
    252255     index  index.html index.htm; 
    253256  } 
    254 ## chris 
     257} 
     258 
     259server { 
     260  listen       *:80; 
     261  server_name 127.0.0.1; 
    255262  location /nginx_status { 
    256263    stub_status on; 
    257     access_log   off; 
     264    access_log off; 
    258265    allow 127.0.0.1; 
    259     allow 81.95.52.103; 
    260266    deny all; 
    261267  } 
    262   location ~ ^/(status|ping)$ { 
     268  # chris 2014-04-14 
     269  location ~ ^/fpm-(status|ping)$ { 
    263270    fastcgi_pass 127.0.0.1:9090; 
    264271    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
     
    267274    access_log off; 
    268275    allow 127.0.0.1; 
     276    allow 81.95.52.103; 
    269277    deny all; 
    270278  }