# Cant test 404 pages in webrick

**URL:** <https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649>\
**Category:** Rails\
**Created:** [June 24, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649 "2007-06-24T20:42:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cujigar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/2acd7d/32.png) [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Post date:** [June 24, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649/1 "2007-06-24T20:42:32Z")

</div>

I tried running webrick in production mode with -e production option. I  
changed development database name so as to make sure webrick was running  
in production mode.

Now I wanted to test my new 404.html page so I typed an invalid URL, I  
still get some routing error instead of my 404.html page.

Why is this happening with webrick in production. I haven’t even changed  
any of the environment files.

please advise,  
thanks

---

<div class="post-metadata">

**Author:** ![cujigar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/2acd7d/32.png) [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Post date:** [June 27, 2007, 3:33am UTC](https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649/2 "2007-06-27T03:33:59Z")

</div>

I’m having the same problem, but only when I access the server from  
127.0.0.1. If I access it from any other address, I get the desired  
Application Error page. This is obviously the intended behaviour. I  
hope that helps Jigar.

However, I would like to get the Application Error page even when  
accessing from local. Anyone have any ideas?

Joel.

On Jun 25, 4:42 am, Jigar G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
