Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

My Droplet:
8 GB RAM 80 GB Space 4 Core CUP $80 Monthly Server : Nginx Database : MySQL I installed one click LEMP from the Admin panel and run a Wordpress site.
I’m getting errors like this everyday:
2015/06/06 14:04:27 [error] 12948#0: *19545859 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 123.201.237.162, server: www.mysite.com, request: "GET /telugu/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:04:27 [error] 12946#0: *19546893 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.206.217.71, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/telugu/2015-telugu/"
2015/06/06 14:04:27 [error] 12948#0: *19546925 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.206.217.71, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/telugu/2015-telugu/"
2015/06/06 14:04:30 [error] 12945#0: *19538751 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.207.96.9, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/english/page/4/?display=tube&filtre=views"
2015/06/06 14:04:30 [error] 12945#0: *19547134 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 92.96.146.25, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/malayalam/"
2015/06/06 14:04:30 [error] 12945#0: *19547134 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 92.96.146.25, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/malayalam/"
2015/06/06 14:04:30 [error] 12945#0: *19547134 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 92.96.146.25, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/malayalam/"
2015/06/06 14:04:30 [error] 12946#0: *19547510 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 31.49.58.222, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:30 [error] 12946#0: *19547510 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 31.49.58.222, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:30 [error] 12946#0: *19542884 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 80.184.44.114, server: www.mysite.com, request: "GET /hindi/2015-hindi-hindi/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/malayalam/"
2015/06/06 14:04:30 [error] 12946#0: *19547502 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 210.212.190.49, server: www.mysite.com, request: "GET /avengers-2-age-ultron-movie-online-watch-hollywood-full-length-film-english-movie/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "https://www.google.co.in/"
2015/06/06 14:04:30 [error] 12945#0: *19547522 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 31.49.58.222, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:30 [error] 12945#0: *19547526 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 121.54.54.139, server: www.mysite.com, request: "GET /fast-furious-7-2015-full-movie-online-watch-english-full-length-film-hollywood-movie/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/06 14:04:34 [error] 12945#0: *19545368 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 150.107.188.223, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page36/"
2015/06/06 14:04:34 [error] 12947#0: *19547801 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 117.200.243.224, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:04:46 [error] 12945#0: *19546882 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 175.139.172.22, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page48/"
2015/06/06 14:04:46 [error] 12946#0: *19548721 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 87.210.127.11, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:46 [error] 12946#0: *19548722 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 87.210.127.11, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:48 [error] 12946#0: *19548902 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 23.236.125.199, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page78/"
2015/06/06 14:04:49 [error] 12947#0: *19548261 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.248.136.243, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:49 [error] 12947#0: *19548263 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.248.136.243, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:04:49 [error] 12946#0: *19543775 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 27.4.216.210, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page2015/"
2015/06/06 14:04:49 [error] 12945#0: *19547719 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 5.198.226.18, server: www.mysite.com, request: "GET /hindi/2015-hindi-hindi/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:05:02 [error] 12948#0: *19549927 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 116.203.72.57, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/?s=PK"
2015/06/06 14:05:03 [error] 12946#0: *19549568 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 79.181.130.103, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page85/"
2015/06/06 14:05:03 [error] 12946#0: *19549981 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 49.205.70.77, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page90/"
2015/06/06 14:05:03 [error] 12948#0: *19549963 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 79.181.130.103, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page45/"
2015/06/06 14:05:10 [error] 12945#0: *19550444 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 182.68.27.181, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page25/"
2015/06/06 14:05:10 [error] 12948#0: *19550032 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 103.15.63.118, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:05:10 [error] 12945#0: *19550447 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 37.231.171.106, server: www.mysite.com, request: "GET /telugu/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://www.google.com.kw/"
2015/06/06 14:05:10 [error] 12948#0: *19550026 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 103.15.63.118, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:05:10 [error] 12948#0: *19549991 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 190.33.66.70, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page36/"
2015/06/06 14:05:10 [error] 12948#0: *19549993 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 190.33.66.70, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page83/"
2015/06/06 14:14:08 [error] 12946#0: *19587787 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 117.221.122.149, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/large.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:14:08 [error] 12946#0: *19587789 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 117.221.122.149, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:14:08 [error] 12946#0: *19587788 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 117.221.122.149, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/colors.php?color=00a5ae&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/"
2015/06/06 14:14:09 [error] 12947#0: *19587610 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 116.203.79.137, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page57/"
2015/06/06 14:14:10 [error] 12948#0: *19588323 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 61.246.208.190, server: www.mysite.com, request: "GET /hindi/feed/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/06 14:14:10 [error] 12946#0: *19581572 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 182.186.47.172, server: www.mysite.com, request: "GET /wp-content/themes/novavideo/css/horizontal.php?responsive=yes&ver=4.1.1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/page69/"
2015/06/06 14:49:18 [error] 12948#0: *19721366 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /var/www/mysite.com/html/wp-content/plugins/wsecure/wsecure-authentication.php on line 15" while reading response header from upstream, client: 173.88.208.211, server: www.mysite.com, request: "GET /page69/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/06 14:49:18 [error] 12948#0: *19721366 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0
PHP mess" while reading upstream, client: 173.88.208.211, server: www.mysite.com, request: "GET /page874/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/06 14:49:18 [error] 12948#0: *19721366 FastCGI sent in stderr: "age: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0" while reading upstream, client: 173.88.208.211, server: www.mysite.com, request: "GET /page89/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/07 01:03:26 [error] 12948#0: *20918559 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /var/www/mysite.com/html/wp-content/plugins/wsecure/wsecure-authentication.php on line 15" while reading response header from upstream, client: 203.106.152.30, server: www.mysite.com, request: "GET /page27/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "https://www.google.com.my/"
2015/06/07 01:03:26 [error] 12948#0: *20918559 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0" while reading upstream, client: 203.106.152.30, server: www.mysite.com, request: "GET /page47/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "https://www.google.com.my/"
2015/06/07 01:23:38 [error] 12946#0: *20971048 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 178.63.13.15, server: www.mysite.com, request: "GET /genre/page/15/?display=extract&filtre=date HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com"
2015/06/07 01:23:38 [error] 12946#0: *20969415 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 221.154.17.6, server: www.mysite.com, request: "GET /malayalam/page/2/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/english/"
2015/06/07 01:23:39 [crit] 12946#0: *20970895 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 108.184.27.146, server: www.mysite.com, request: "GET /dil-dhadakne-2015-full-movie-online-watch-hindi-full-length-film/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mysite.com", referrer: "http://mysite.com/hindi/"
2015/06/07 01:24:07 [error] 12945#0: *20970770 directory index of "/var/www/mysite.com/html/wp-content/uploads/2015/02/" is forbidden, client: 178.152.60.151, server: www.mysite.com, request: "GET /wp-content/uploads/2015/02/ HTTP/1.1", host: "mysite.com", referrer: "http://mysite.com/wp-content/uploads/2015/02/official-1233.jpg"
MY Virtual Host File is:
server {
listen 80;
listen [::]:80;
root /var/www/mysite.com/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name www.mysite.com mysite.com;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?q=$request_uri;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
# proxy_pass http://127.0.0.1:8080;
#}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /usr/share/nginx/html;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# root html;
# index index.html index.htm;
#
# location / {
# try_files $uri $uri/ =404;
# }
#}
# HTTPS server
#
#server {
# listen 443;
# server_name localhost;
#
# root html;
# index index.html index.htm;
#
# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
#
# ssl_session_timeout 5m;
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
# ssl_prefer_server_ciphers on;
#
# location / {
# try_files $uri $uri/ =404;
# }
#}
and my Nginx Config file is:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 1024;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
keepalive_requests 100000;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 4 32k;
client_body_timeout 12;
client_header_timeout 12;
send_timeout 10;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_static on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##
#include /etc/nginx/naxsi_core.rules;
##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##
#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
My fastcgi_param File is:
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS $https if_not_empty;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
I’m a newbie to Nginx and I asked several time this problem to support and they were unable to find out a solution for this.
I have two problem with my this site.
I want to rid of from my the aforesaid errors. How can I solve this issue?
I want to open my site as “www.mysite.com”, now its opening as http://mysite.com instead of http://www.mysite.com. Domain AAA records are correct. I think there is a bad config in my ngnix.conf. Plz suggest me the correct configuration for this.
I think my Nginx.conf file is not optimized in a better way. I’m getting around 10k- 15k traffic each day. some time my site is opening very slowly. How can I speed up my site?
Thanks in Advance for your valuable suggestion.
NB: Sorry for the Bad English. Its not my native Language.
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e