Answer the question
In order to leave comments, you need to log in
Why doesn't nginx (in conjunction with unicorn) start on port 80?
1. For some reason, port 8080 is busy, so I launched unicorn on port 8081: listen 8081, :tcp_nopush => true
I ran it like this:
bundle exec unicorn -E production -c config/unicon.rb
server {
listen 80;
server_name test.com;
root /var/www/apps/testapp/public;
sudo /etc/init.d/nginx start
403 Forbidden
nginx/1.2.1
Answer the question
In order to leave comments, you need to log in
read what is written in the logs
cd /var/log
ls
less nginx/nginx.log
q
Try to read at least one manual for setting up such a bundle, a question from the category I made complete garbage, without delving into the configs for a single gram, why did I get garbage, because I made garbage, but I wanted candy, and I didn’t do candy, I did garbage.
I'm not strong in unicorn, but in the nginx php-fpm bundle - fastcgi_pass goes.
I guess we need to do something similar.
RTFM in general. :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question