Welcome! Log In Create A New Profile

Advanced

Re: Nginx + Rails (Thin Server) - Double Bad Gateway Problem

March 29, 2012 12:43PM
Thanks Maxim,

I've discovered that the configuration in rails systemintegration / production environment was different from development.
So, if someone called a URL that wasn't routable, the server responded empty response instead of sending a 404.
When I switched the config, the server started to send 404 and Nginx worked correctly.

# config/environments/production.rb
# Show exception templates (must be on to launch 404 when invalid route is called)
config.action_dispatch.show_exceptions = true

Daniel Silvestre
Subject Author Posted

Nginx + Rails (Thin Server) - Double Bad Gateway Problem

djlebersilvestre March 28, 2012 09:26AM

Re: Nginx + Rails (Thin Server) - Double Bad Gateway Problem

Maxim Dounin March 28, 2012 10:40AM

Re: Nginx + Rails (Thin Server) - Double Bad Gateway Problem

djlebersilvestre March 29, 2012 12:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready