Answer the question
In order to leave comments, you need to log in
How to tell nginx and rails to use port 80?
There are several problems (or maybe one).
I'm trying to run a rails app on port 80 and it's empty:
[email protected]:/var/www/apps/testapp$ rails server -d -e production -p 80
=> Rails 3.2.8 application starting in production on http://0.0.0.0:80
[email protected]:/var/www/apps/testapp$
[email protected]:/var/www/apps/testapp$ lsof -wni tcp:80
[email protected]:/var/www/apps/testapp$
server {
charset utf-8;
listen 80;
server_name mytestapp.com;
root /var/www/apps/testapp/;
...
Answer the question
In order to leave comments, you need to log in
Do you start rails server when you have nginx running? Then, I think, and there is no result With the
config that you brought, you want to send rails through nginx? Well, at least, probably, you need to hover over the public folder. Secondly, this is usually done through a proxy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question