Erwin
2013-Mar-19 04:58 UTC
rails app deployed in sub-directory, how to force url w ending slash
I deployed my app into a sub-directory ( Rails 3.2.12 / Apache w Passenger ) w the following vhost.conf : Alias /myapp /home/myself/rails/mydomain.com/my_app/current/public <Location /myapp > PassengerAppRoot /home/myself/rails/mydomain.com/ my_app/current RackEnv production RackBaseURI /myapp </Location> it''s running fine , going to http://www.mydomain.com/myapp/ ( w ending slash ) however , and correctly ( as Apache in this case try to reach a page) going to http://www.mydomain.com/myapp raises a routing error.. should I redirect http://www.mydomain.com/myapp to http://www. mydomain.com/myapp/ ? or is there a better way not to raise the routing error for faulty users ? thanks for your feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/reF-n5ZOWdMJ. For more options, visit https://groups.google.com/groups/opt_out.