| | 44 | |
| | 45 | #11 * * * * bash /var/xdrago/clear.sh >/dev/null 2>&1 |
| | 46 | |
| | 47 | }}} |
| | 48 | |
| | 49 | 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: |
| | 50 | |
| | 51 | {{{ |
| | 52 | ####################################################### |
| | 53 | ### nginx default server |
| | 54 | ####################################################### |
| | 55 | |
| | 56 | server { |
| | 57 | limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address |
| | 58 | listen *:80; |
| | 59 | server_name _; |
| | 60 | location / { |
| | 61 | root /var/www/nginx-default; |
| | 62 | index index.html index.htm; |
| | 63 | } |
| | 64 | ## chris |
| | 65 | location /nginx_status { |
| | 66 | stub_status on; |
| | 67 | access_log off; |
| | 68 | allow 127.0.0.1; |
| | 69 | allow 81.95.52.103; |
| | 70 | deny all; |
| | 71 | } |
| | 72 | location ~ ^/(status|ping)$ { |
| | 73 | fastcgi_pass 127.0.0.1:9090; |
| | 74 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| | 75 | fastcgi_intercept_errors on; |
| | 76 | include fastcgi_params; |
| | 77 | access_log off; |
| | 78 | allow 127.0.0.1; |
| | 79 | deny all; |
| | 80 | } |
| | 81 | } |
| | 82 | }}} |
| | 83 | |
| | 84 | And the following lines need uncommenting in {{{/opt/local/etc/php53-fpm.conf}}}: |
| | 85 | |
| | 86 | {{{ |
| | 87 | pm.status_path = /status |
| | 88 | ping.path = /ping |