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!) thanxs! -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 11, 6:41 pm, jeljer te Wies <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Well i Tried to do It with apache. I did it with setting directory. But this didn''t work. I have been trying to solve It with apache for hours. What should I set in my virtualhost ? Gr -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.