Error: 403 Forbidden nginx/1.0.6

453 views
Skip to first unread message

emc_lab

unread,
Nov 7, 2011, 3:00:23 PM11/7/11
to Phusion Passenger Discussions
Hi,

Deployed the rails app on passenger + nginx. Here is the conf.

server {
listen 80;
server_name 21.15.169.24;
root /vol/www/emclab/current;
passenger_enabled on;
rails_env production;
}


ruby is:

http {
passenger_root /home/dtt/.rvm/gems/ruby-1.9.2-p290/gems/
passenger-3.0.9;
passenger_ruby /home/dtt/.rvm/wrappers/ruby-1.9.2-p290/ruby;

However when type the ip address in browser and received a 403 error.

Any suggestions about the problem? Thanks.


Phillip Koebbe

unread,
Nov 7, 2011, 6:33:41 PM11/7/11
to phusion-...@googlegroups.com

On Nov 7, 2011, at 2:00 PM, emc_lab wrote:

> Hi,
>
> Deployed the rails app on passenger + nginx. Here is the conf.
>
> server {
> listen 80;
> server_name 21.15.169.24;
> root /vol/www/emclab/current;
> passenger_enabled on;
> rails_env production;
> }
>
>

My nginx configurations have root pointing to the public folder of the rails project:

server {
listen 80;
server_name www.mydomain.com;
root /var/www/railsapp/current/public;
passenger_enabled on;
rails_env production;
}

Have you tried that?

Phillip

emc_lab

unread,
Nov 14, 2011, 11:16:26 AM11/14/11
to Phusion Passenger Discussions
The problem fixed after configuring nginx.conf. Thanks.
Reply all
Reply to author
Forward
0 new messages