Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. 2015/07/03 17:38:51 [error] 4283#0: *74154 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 173.245.xx.xx, server: www.mydomain.com, request: "GET /path/to/file HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:
  2.  
  3. total used free shared buffers cached
  4. Mem: 15G 15G 248M 71M 1.3G 11G
  5. -/+ buffers/cache: 2.3G 13G
  6. Swap: 0B 0B 0B
  7.  
  8. user www-data;
  9. worker_processes 8;
  10. pid /run/nginx.pid;
  11.  
  12. events {
  13. worker_connections 16192;
  14. multi_accept on;
  15. use epoll;
  16. }
  17.  
  18. http {
  19. sendfile on;
  20. tcp_nopush on;
  21. tcp_nodelay on;
  22. keepalive_timeout 15;
  23. types_hash_max_size 2048;
  24. include /etc/nginx/mime.types;
  25. default_type application/octet-stream;
  26. access_log /var/log/nginx/access.log;
  27. error_log /var/log/nginx/error.log;
  28. gzip on;
  29. gzip_disable "msie6";
  30. include /etc/nginx/conf.d/*.conf;
  31. include /etc/nginx/sites-enabled/*;
  32. }
  33.  
  34. fastcgi_cache_key "$host$request_uri";
  35. fastcgi_cache_use_stale error timeout invalid_header http_500;
  36. fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
  37.  
  38. server {
  39. listen 80 default_server;
  40. listen [::]:80 default_server ipv6only=on;
  41. listen 127.0.0.1 default_server;
  42.  
  43. root /usr/share/nginx/html;
  44. index index.php index.html index.htm;
  45.  
  46. server_name my.website.com;
  47. server_name localhost;
  48.  
  49. location / {
  50. try_files $uri $uri/ =404;
  51. }
  52.  
  53. error_page 404 /404.html;
  54. error_page 500 502 503 504 /50x.html;
  55. location = /50x.html {
  56. root /usr/share/nginx/html;
  57. }
  58.  
  59. location ~ .php$ {
  60. try_files $uri =404;
  61. fastcgi_split_path_info ^(.+.php)(/.+)$;
  62. fastcgi_pass unix:/var/run/php5-fpm.sock;
  63. fastcgi_index index.php;
  64. include fastcgi_params;
  65.  
  66. }
  67. location ~ .php$ {
  68. fastcgi_split_path_info ^(.+.php)(/.+)$;
  69. fastcgi_pass unix:/var/run/php5-fpm.sock;
  70. fastcgi_index index.php;
  71. include fastcgi_params;
  72. }
  73.  
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement