# Rails production env routing issue

**URL:** <https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095>\
**Category:** Deployment\
**Created:** [September 20, 2008, 9:23am UTC](https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095 "2008-09-20T09:23:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ab992/32.png) [@neko](https://www.ruby-forum.com/u/neko)\
**Post date:** [September 20, 2008, 9:23am UTC](https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095/1 "2008-09-20T09:23:36Z")

</div>

I have an annoying problem when i start rails in production mode. Rails  
starts and is logging to the production log, however when i goto an  
invalid URL i get an routing error page instead of a 404.

This happens with both mongrel and webrick (running rails 2.1 on  
kubuntu).

Any ideas on why this is happening?

---

<div class="post-metadata">

**Author:** ![neko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ab992/32.png) [@neko](https://www.ruby-forum.com/u/neko)\
**Post date:** [September 20, 2008, 11:51am UTC](https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095/2 "2008-09-20T11:51:56Z")

</div>

After another Google I found the problem -  
[Lighttpd - "Routing Error" in production? - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/44859). Changed localhost to my LAN ip in  
nginx and everything is working like it should.
