Topic: Rails, passenger, nginx, 404.

Hello, my name is Denis. I'm new in rails, passenger and nginx, but i want to know how to configurate nginx to serve 404 respond from rails app. I want to navigate to not_found page, send 404 respond from rails to nginx ang nginx give 404.html page. I need not rails 404.html, only served by nginx.

Last edited by den.jmpr (2012-12-12 03:51:49)

Re: Rails, passenger, nginx, 404.

Just put it in the doc root (public dir) and nginx should find it there (without help from rails) when 404.html is requested.