Tag Info

New answers tagged


server { listen 80; server_name yourhostname; return 301 https://$server_name$request_uri; } There are plenty of questions on SF. Here is one of them.


I managed to solve the problem. The problem is that nginx can't read /tmp/unicorn.rails_app.sock since PrivateTmp=true in /etc/systemd//system/multi-user.target.wants/nginx.service These are what I dit. Created directory for unicorn socket mkdir /var/run/unicorn chown rails:rails /var/run/unicorn chmod 755 /var/run/unicorn Modified nginx.conf upstream ...

Top 50 recent answers are included