我决定在我pipe理的网站上安装最新的Ubuntu 16.04系统,这是一连串的灾难。 我有问题与MySQL服务器,我不知道是完全解决,因为有时我有MySQL连接错误。 我放弃了设置垃圾邮件的攻击。 但我希望至less可以使网站像以前一样。 我得到这些奇怪的nginx错误,我不明白。 在过去,我能够成功部署各种rails应用程序,没有大的问题。 但在这里,我绝望地卡住了。 我的大部分网站都可以正常工作,但有些链接却不行。 http://chrisbeard-images.com/photos?tag=Bridges
他们在本地开发机器上似乎没问题,而且在我重新安装系统之前完全正常。
$尾日志/ nginx.error.log给我错误,我不明白
2016/06/20 21:01:34 [info] 17909#17909: *41 client closed connection while waiting for request, client: 86.22.165.132, server: 0.0.0.0:80
$ tail log / nginx.access.log
“GET / photos?tag =桥梁HTTP / 1.1”500 643“ http://chrisbeard-images.com/tags ”“Mozilla / 5.0(X11; Ubuntu; Linux x86_64; rv:47.0)Gecko / 20100101 Firefox / 47.0“
$ cat /etc/nginx/nginx.conf
user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 1024; } http { client_max_body_size 2048M; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; 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; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; gzip_types text/plain text/xml text/css text/comma-separated-values; upstream app_server { server 127.0.0.1:8080 fail_timeout=0; } include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
$ cat / etc / nginx / sites-enabled / default
upstream puma { server unix:///home/chris/Rails/chrisbim2ree/shared/tmp/sockets/chrisbim2ree-puma.sock; } server { listen 80 default_server deferred; # server_name example.com; root /home/chris/Rails/chrisbim2ree/current/public; access_log /home/chris/Rails/chrisbim2ree/current/log/nginx.access.log; error_log /home/chris/Rails/chrisbim2ree/current/log/nginx.error.log info; location ^~ /assets/ { gzip_static on; expires max; add_header Cache-Control public; } try_files $uri/index.html $uri @puma; location @puma { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://puma; } error_page 500 502 503 504 /500.html; client_max_body_size 10M; keepalive_timeout 10; }