I want to use nginx as my Rails development server.I installed nginx and passenger.
My nginx configuration file is :
http{
passenger_root /home/hxh/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.26;
passenger_ruby /home/hxh/.rvm/wrappers/ruby-1.9.3-p448/ruby;
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
root /home/hxh/share/ruby/sport;
passenger_enabled on;
rails_env development;
}
}
But when I run the server,I got the error:
404 Not Found
nginx/1.4.4
why the nginx didn't identify the Rails page.