# .htaccess and Mongrel

**URL:** <https://www.ruby-forum.com/t/htaccess-and-mongrel/140718>\
**Category:** Rails\
**Created:** [June 17, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718 "2008-06-17T21:53:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![histrionics](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Post date:** [June 17, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718/1 "2008-06-17T21:53:34Z")

</div>

I would like to implement a .htaccess security setup like the one  
referenced here:  
[http://www.0x000000.com/index.php?i=558&bin=1000101110](http://www.0x000000.com/index.php?i=558&bin=1000101110)

However, i am using mongrel and it bypasses .htaccess rules.

Does anyone have any suggestions on how I might get Mongrel to adhere  
to an .htaccess document?

---

<div class="post-metadata">

**Author:** ![histrionics](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Post date:** [June 17, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718/2 "2008-06-17T22:11:51Z")

</div>

On 17 Jun 2008, at 20:53, histrionics wrote:

> to an .htaccess document?  
> htaccess is an apache specific thing as far as I know, and on top of  
> that mongrel doesn’t have a mod\_rewrite. Given that most people sit  
> mongrel behind apache or nginx you could do your filtering there. You  
> could have an interesting time though when users report some pages not  
> loading mysteriously

Fred

---

<div class="post-metadata">

**Author:** ![histrionics](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Post date:** [June 17, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718/3 "2008-06-17T22:45:03Z")

</div>

Just like Frederick said the .htaccess (also know as “distributed  
configuration files”) file has nothing to do with Mongrel and is a  
Apache only configuration file.

This is the reason why people use apache infront of mongrel. For the  
added flexibility.
