rails app deployed in sub-directory, how to force url w ending slash

13 views
Skip to first unread message

Erwin

unread,
Mar 19, 2013, 12:58:51 AM3/19/13
to rubyonra...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages