On Sep 11, 6:41 pm, jeljer te Wies <[email protected]> wrote: > Hi guys.. > I am deploying a new rails 3 app. > For this i am using rails 3, thin and apache. > > But for hours now i have a problem with the public dir. > It cannot be accessed beceause it is filtered by the route file. > > I have in my routes file the following: > match '/:id(/*path)' => "websites#index" > > it is obvious that this makes nice url /23/helloWorld etc. > In development mode there is no problem. > > When i switch to production however this method is called. And beceause > for example > the image.png id doesn't exist it redirects to / > > does anybody know why this happens? (why doesn't the app first check the > public folder!)
Are you just proxying all requests to thin ? Typically you configure apache to serve up anything that exists in /public, only sending the request to your rails backend if it doesn't red > > thanxs! > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

