# Newbie question about rails on apache2

**URL:** <https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704>\
**Category:** Rails\
**Created:** [June 9, 2008, 8:56am UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704 "2008-06-09T08:56:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allan\_Du](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Post date:** [June 9, 2008, 8:56am UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704/1 "2008-06-09T08:56:49Z")

</div>

Hi,

I just setup my rails application on apache2, just a very simply  
controller, and one method /stats/show  
When go to the root page, I can see the rails default page, but if I  
go to any other page like stats/show lead me to the 500.html page.  
What should I do? Thank you very much!

---

<div class="post-metadata">

**Author:** ![Allan\_Du](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Post date:** [June 9, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704/2 "2008-06-09T20:01:28Z")

</div>

There’s not allot of information in your post for a very open  
question…

1. Are you using mod\_rails? Mongrel?
2. Have you deleted the public/index.html?
3. Have you set the root route in config/routes.rb?

---

<div class="post-metadata">

**Author:** ![Allan\_Du](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Post date:** [June 9, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704/3 "2008-06-09T22:00:28Z")

</div>

Output from your log file (you’re probably in dev mode, so log/  
development.log) would be helpful also.

---

<div class="post-metadata">

**Author:** ![Allan\_Du](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Post date:** [June 9, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704/4 "2008-06-09T22:05:10Z")

</div>

> Output from your log file (you’re probably in dev mode, so log/  
> development.log) would be helpful also.

ignor that… you’re in production mode.

---

<div class="post-metadata">

**Author:** ![Allan\_Du](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@Allan\_Du](https://www.ruby-forum.com/u/Allan_Du)\
**Post date:** [June 17, 2008, 3:18am UTC](https://www.ruby-forum.com/t/newbie-question-about-rails-on-apache2/196704/5 "2008-06-17T03:18:15Z")

</div>

Thank you so much for reply!  
I’m using mod\_rails  
I deleted public/index.html and used map.connect ‘’, :controller =\>  
‘stats’, :action =\> ‘show’  
to route.  
If I try to use ruby script/sever, every thing works fine, but if I  
change to use apache2 the 500.html shows again.
