views:

69

answers:

1

I have a shared/ folder in my my_app/public/ folder and when attempting to access it via www.my_app.com/shared, I see:

no route matches '/shared', :method => 'get'

This makes sense, but I want rails to ignore this folder and just let me use Apache to render a standard directory listing here.

Any way to do this?

+2  A: 

All you should need to do is disable Passenger for that directory, and make sure Indexes (directory listings) are allowed. In your Apache <VirtualHost> config block, add:

<Location /shared>
  PassengerEnabled off
  Options +Indexes
</Location>
Alex Reisner
I'm on a shared server and the server admins would not add this to the httpd.conf for me. Fortunately, I was able to find a rather suitable work around with mod_rewrite and a subdomain. Thanks though :)
macek