ポート 80 でサイトを起動できませんが、3000 でのみ起動できます。Nginx は標準のインデックス ページを表示します。Nginx の設定:
http {
passenger_root /home/my_user_name/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11;
passenger_ruby /home/my_user_name/.rvm/wrappers/ruby-1.9.3-p125/ruby;
include mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
server {
listen 80;
server_name www.my_site_name.com
root /home/my_user_name/my_site_name/public; # <--- be sure to point to 'public'!
passenger_enabled on;
}
}
コマンド:
passenger start -e production # successfully started on port 3000
rvmsudo passenger start -e production -p 80 # error, see below
エラー:
*** ERROR ***
The address 0.0.0.0:80 is already in use by another process, perhaps another
Phusion Passenger Standalone instance.
If you want to run this Phusion Passenger Standalone instance on another port,
use the -p option, like this:
passenger start -p 81
助けてくれてありがとう!