Some help would be appreciated – keep getting Forbidden 403 error.
Nginx configuration:
listen 80;
server_name www.xxx.com;
passenger_enabled on;
#charset koi8-r;
#access_log logs/host.access.log main;
root /home/deploy/xxx.com/current;
I’ve deployed with Capistrano, and it was successful (cap deploy)
I’ve googled and not found much help, from those that I tried.
Secondly, I’ve removed my “public” folder, and enabled my “route” in routes.rb.
root to: 'static_pages#home'
Origionally I had the “public” folder in place, but it kept going to “index.html”, not the Rails /Home. I’ve tried this locally and it works perfectly with “rails server” on localhost:3000.
It almost appears as if NGINX does not now how to find or serve up the Rails pages.
Ps. I did review StackOverflow, not luck there.
Any help would be appreciated.
Yihhaaaaa ok got it!
The problem seemed to be two things as mentioned in the comments:
And what do you know it works!
The key was looking in the production.log (/home/deploy/xxx.com/current/log/).
That shall tell all.
Cheers