I install passenger on rvm with gem

```
gem install passenger

```

and then install nginx with it

```
rvmsudo passenger-install-nginx-module

```

and edited the /opt/nginx/nginx.conf file adding this two line to the server issue:

```
passenger_enabled on; 
root /home/snir/my_app/public;

```

but running passenger (after stopping the nginx system service) give me this output:

```
Environment: development
Accessible via: http://0.0.0.0:3000/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
===============================================================================
2013/04/16 17:47:08 [error] 4730#0: *4 "/home/snir/public/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"

```

and browsing to 0.0.0.0:3000 gives me a 404 not found page of nginx.
what is wrong? why does passenger look for app at /home/snir/public instead of the route I gave it in the nginx.conf file which is /home/snir/my\_app/public?

edit:

so it seems like nginx was not connected to passenger as it wasn't appear at --add-module of nginx. but I installed it correctly, so it might be some other installation of nginx coming with ubuntu that conflict the passenger installation.