Hi Hansen,
Thank you for your reply.
Here is my nginx.conf file-
upstream puma {
server unix:///home/vish/apps/globe3/shared/tmp/sockets/globe3-puma.sock;
}
server {
listen 80 default_server deferred;
# server_name example.com;
root /home/vish/apps/globe3/current/public;
access_log /home/vish/apps/globe3/current/log/nginx.access.log;
error_log /home/vish/apps/globe3/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;
}
sudo tail -10 /var/log/nginx/error.log
2017/07/28 06:48:14 [crit] 14839#14839: *33 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 138.68.229.14, server: localhost, request: "GET /nginx_status HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/500.html", host: "138.68.229.14"
2017/07/28 06:48:40 [notice] 14879#14879: signal process started
2017/07/28 06:48:56 [crit] 14904#14904: *1 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/", host: "138.68.229.14"
2017/07/28 06:48:56 [crit] 14904#14904: *1 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/500.html", host: "138.68.229.14"
2017/07/28 06:48:57 [crit] 14904#14904: *1 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/", host: "138.68.229.14"
2017/07/28 06:48:57 [crit] 14904#14904: *1 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/500.html", host: "138.68.229.14"
2017/07/28 07:13:46 [crit] 14904#14904: *6 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/", host: "138.68.229.14"
2017/07/28 07:13:46 [crit] 14904#14904: *6 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/500.html", host: "138.68.229.14"
2017/07/28 07:13:48 [crit] 14904#14904: *6 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/", host: "138.68.229.14"
2017/07/28 07:13:48 [crit] 14904#14904: *6 connect() to unix:/home/vish/globe3/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 24.6.255.25, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/vish/globe3/shared/sockets/puma.sock:/500.html", host: "138.68.229.14"