Forum: Ruby on Rails Multiple Rails Apps in 1 Virtual Host on Apache 1.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8aa2f692f69ad566f736fb9d38182968?d=identicon&s=25 Paul Barclay (Guest)
on 2006-01-13 15:45
After attempting this on my own using the Apache "Alias" directive I
noticed that it did not work in all cases:

http://myserver/app1/ (this worked)
http://myserver/app1 (this failed, I won't bore you with the rewrite
logs of why)

This led me to the following article
http://wiki.rubyonrails.com/rails/pages/HowtoDeplo...

Which I followed.

Must to my sorrow I get the same behaviour as using "Alias".

I found I can fix this using another rewrite rule:

RewriteRule ^/app1$   /app1/     [r]

I would like to get this working without having to do the redirect, has
anybody else had this problem?

I am runnig Linux, apache 1.3 and the latest Rails version.
675475d0b65710be6d992eb5eb2c61c2?d=identicon&s=25 Gregory Seidman (Guest)
on 2006-01-13 17:34
(Received via mailing list)
On Fri, Jan 13, 2006 at 03:45:04PM +0100, Paul Barclay wrote:
} After attempting this on my own using the Apache "Alias" directive I
} noticed that it did not work in all cases:
}
} http://myserver/app1/ (this worked)
} http://myserver/app1 (this failed, I won't bore you with the rewrite
} logs of why)
}
} This led me to the following article
}
http://wiki.rubyonrails.com/rails/pages/HowtoDeplo...
}
} Which I followed.
}
} Must to my sorrow I get the same behaviour as using "Alias".
}
} I found I can fix this using another rewrite rule:
}
} RewriteRule ^/app1$   /app1/     [r]
}
} I would like to get this working without having to do the redirect,
has
} anybody else had this problem?
}
} I am runnig Linux, apache 1.3 and the latest Rails version.

Actually, this is exactly what you should do. If you watch what
webservers
do when you ask for a directory without the terminal slash, it redirects
you to the URL with an appended slash. The redirect you are using is
right
and proper. Why don't you like it?

--Greg
8aa2f692f69ad566f736fb9d38182968?d=identicon&s=25 Paul Barclay (Guest)
on 2006-01-13 17:56
No good reason really....

I just wanted to do it without the redirect to keep my superiors happy
as they felt the redirect was a bit clumsy.

Thanks for the feedback.
This topic is locked and can not be replied to.