I am trying to get passenger + nginx to work on my localhost for a rails 3 app, I keep getting a page showing "403 Forbidden, nginx/0.8.53"? my nginx.conf looks like this server { listen 3000; server_name localhost; root /home/yadav/dev/rails/projects/TestApp/public; passenger_enabled on; rails_spawn_method smart; rails_env development; in my rails app i don''t have a index.html page under the public folder. instead is got a home controller with a view for my home page, my routes.rb has the following entry: root :to => "home#index" if I put a index.html page under public i see it, but that''s not what I want. how can I get my test app to run without the index page under public? -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux: 2.6.35-23-generic Kubuntu x86_64 10.10 | KDE 4.5.1 Ruby 1.9.2p0 | Rails 3.0.3 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rajinder Yadav wrote in post #969270:> I am trying to get passenger + nginx to work on my localhost for a rails > 3 app,Why bother? This isn''t a production server, so why not just use a single Unicorn or Thin instance, or whatever Rails runs for you by default? I''ve never yet found a good reason to run Passenger for development. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10-12-18 12:54 PM, Marnen Laibow-Koser wrote:> Rajinder Yadav wrote in post #969270: >> I am trying to get passenger + nginx to work on my localhost for a rails >> 3 app, > > Why bother? This isn''t a production server, so why not just use a > single Unicorn or Thin instance, or whatever Rails runs for you by > default? > > I''ve never yet found a good reason to run Passenger for development. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone >I am learning that''s why I am bothering =) Before I can deploy to my test "production" webserver I want to figure out things. I managed to get passenger working with Apache that I built from source just now, that went a bit smoother. Still I would like to know how to do the same thing with nginx. Any ideas on how to get nginx working? -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux: 2.6.35-23-generic Kubuntu x86_64 10.10 | KDE 4.5.1 Ruby 1.9.2p0 | Rails 3.0.3 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.