New answers tagged unicorn
Don't run nginx as the root user, you should be using a www-data user or even your deployer user. This can be changed in the /etc/nginx/nginx.conf file (should be the first line). Then restart nginx using service or your init.d script.
You can give sudo rights to deployer user to reload nginx. See /etc/sudoers and its man page for closer details.
The problem comes from your reverse proxy definition. You have a loop because of that satement : ProxyPassReverse http://gitlab.martijn.osbournia.com/ Modify your configuration like this : <Proxy balancer://unicornservers> BalancerMember http://127.0.0.1:8081 </Proxy> ProxyPass / balancer://unicornservers/ ProxyPassReverse / ...
Your unicorn configuration is most likely not setup correctly. This happens on my server when nginx is running, but unicorn is not. The reason is that nginx tries to pass the request to the socket, but unicorn is not there to receive it. By default, unicorn listens on port 8080 only. You can change your unicorn settings to listen on a different port, or a ...
Top 50 recent answers are included