Changes between Version 123 and Version 124 of PuffinServer
- Timestamp:
- 04/14/14 12:16:22 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PuffinServer
v123 v124 237 237 ==== nginx config changes ==== 238 238 239 To get the nginx andphp-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:239 To 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: 240 240 241 241 {{{ … … 249 249 server_name _; 250 250 location / { 251 expires 60s; 252 add_header Cache-Control "public, must-revalidate, proxy-revalidate"; 253 add_header Access-Control-Allow-Origin *; 251 254 root /var/www/nginx-default; 252 255 index index.html index.htm; 253 256 } 254 ## chris 257 } 258 259 server { 260 listen *:80; 261 server_name 127.0.0.1; 255 262 location /nginx_status { 256 263 stub_status on; 257 access_log 264 access_log off; 258 265 allow 127.0.0.1; 259 allow 81.95.52.103;260 266 deny all; 261 267 } 262 location ~ ^/(status|ping)$ { 268 # chris 2014-04-14 269 location ~ ^/fpm-(status|ping)$ { 263 270 fastcgi_pass 127.0.0.1:9090; 264 271 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; … … 267 274 access_log off; 268 275 allow 127.0.0.1; 276 allow 81.95.52.103; 269 277 deny all; 270 278 }