# Bypass "public html" and go straight to a controller, or not

**URL:** <https://www.ruby-forum.com/t/bypass-public-html-and-go-straight-to-a-controller-or-not/107343>\
**Category:** Rails\
**Created:** [June 20, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/bypass-public-html-and-go-straight-to-a-controller-or-not/107343 "2007-06-20T18:58:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [June 20, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/bypass-public-html-and-go-straight-to-a-controller-or-not/107343/1 "2007-06-20T18:58:15Z")

</div>

I’m wondering what the general consensus is for utilizing Apache for the  
static content and only using Mongrel/WEBrick/etc for the Ruby code.  
From  
the resource perspective, it’s a rather obvious choice. From the  
development perspective, it’s not so clear. I personally don’t care to  
have  
Apache on my development machine and enjoy the flexibility of developing  
my  
projects across multiple computers. To develop, all I need to do is  
checkout my code from Subversion and start a Mongrel instance. No  
Apache  
config, etc. My application is right there, complete, and ready to  
roll.  
If I had the Apache layer, I’d need to spend time configuring that.

What I generally do is create a “home” or “welcome” controller that  
simply  
drives pages like about us, contact, directions, etc. All of the URL  
mappings are done in the routes file.

What are your thoughts on this subject?

–  
Chris S.  
removed\_email\_address@domain.invalid  
[http://www.compiledmonkey.com](http://www.compiledmonkey.com)

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [June 20, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/bypass-public-html-and-go-straight-to-a-controller-or-not/107343/2 "2007-06-20T19:05:15Z")

</div>

> What I generally do is create a “home” or “welcome” controller that simply  
> drives pages like about us, contact, directions, etc. All of the URL  
> mappings are done in the routes file.
> 
> What are your thoughts on this subject?

Why do you need apache for development? Mongrel will serve up static  
files  
and Rails just fine…

I used to develop “mongrel only” quite a bit. I don’t now, but that’s  
for  
reason completely outside of this…

-philip
