I spent way, way too much time troubleshooting a 403 error with Passenger:
=============== Phusion Passenger Standalone web server started PID file: /opt/mcjr/passenger.9000.pid Log file: /opt/mcjr/log/development.log Environment: development Accessible via: http://0.0.0.0:9000/ Serving in the background as a daemon. 403 Forbidden nginx/0.8.52 |
It turns out that even though thee permissions on my rails app were fine, the base directory did not allow proper access:
root:/# ls -l . . . drwx------ 9 root root 4096 Nov 21 11:48 opt . . . |
The fix was to grant execute perms:
root:/# chmod 755 opt |
All was happy, then. No 403 error, and I was riding the rails:
Welcome aboard You're riding Ruby on Rails! |