Changes between Version 32 and Version 33 of PuffinServer


Ignore:
Timestamp:
04/08/13 21:34:56 (4 years ago)
Author:
chris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PuffinServer

    v32 v33  
    4242export EDITOR=vim 
    4343crontab -e 
     44 
     45#11 * * * * bash /var/xdrago/clear.sh >/dev/null 2>&1 
     46 
     47}}} 
     48 
     49To 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 
     56server { 
     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 
     84And the following lines need uncommenting in {{{/opt/local/etc/php53-fpm.conf}}}: 
     85 
     86{{{ 
     87pm.status_path = /status 
     88ping.path = /ping 
    4489}}} 
    4590