Using passenger, nginx for dev testing

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 Y. | 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

Rajinder Y. 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
[email protected]

Sent from my iPhone

On 10-12-18 12:54 PM, Marnen Laibow-Koser wrote:

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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 Y. | 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