# Allowing Apache Indexes?

**URL:** <https://www.ruby-forum.com/t/allowing-apache-indexes/148783>\
**Category:** Deployment\
**Created:** [September 17, 2008, 3:11am UTC](https://www.ruby-forum.com/t/allowing-apache-indexes/148783 "2008-09-17T03:11:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [September 17, 2008, 3:11am UTC](https://www.ruby-forum.com/t/allowing-apache-indexes/148783/1 "2008-09-17T03:11:37Z")

</div>

Rails 1.2.6  
Apache 2.2.6

I want to allow Apache direct access to a folder inside /public to show  
a listing (i.e. /public/demo\_images/), but I can’t get that to work  
without Rails routing trying to intercept it. Normally I’ve had no  
trouble in my other sites doing this with simple configs in  
Apache, but Rails is complicating this somehow.

What’s the magic for this? Thx.

– gw

---

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [September 17, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/allowing-apache-indexes/148783/2 "2008-09-17T14:58:37Z")

</div>

Greg,

Try creating an .htaccess file in the public/demo\_images directory  
with the following contents:

RewriteEngine Off  
Options +Indexes

–  
Joe C.

> **[RailsPlayground.com Ruby On Rails Hosting](https://railsplayground.com)**
>
> Ruby on Rails Web Hosting starting at just $5/a month

1-800-603-4125

On Tue, Sep 16, 2008 at 9:11 PM, Greg W.
