This project is archived and is in readonly mode.
Routing errors serving static files with Mongrel
Reported by James Conroy-Finn | March 9th, 2009 @ 03:53 PM
Mongrel produces a routing error when serving static files without using a complete url.
i.e. GET /folder doesn't render public/folder/index.html but instead raises a routing error.
An empty route does serve public/index.html, as one would expect, but no XHTML files in subdirectories are ever served.
This behaviour did not exist in Rails 2.2.2.
Comments and changes to this ticket
-
Tor Erik March 9th, 2009 @ 10:28 PM
- Tag changed from 2.3, mongrel, routing to 2.3, 2.3-rc2, mongrel, routing
This looks like a regression.
Before 2.3:
/ => public/index.html /foo/bar/ => public/foo/bar/index.html
After 2.3:
/ => public/index.html /foo/bar/ => 404
-
josh March 10th, 2009 @ 12:32 AM
- Assigned user set to josh
- Milestone cleared.
Does this happen on script/server, mongrel_rails, or both?
-
Repository March 10th, 2009 @ 04:31 AM
- State changed from new to resolved
(from [0c9bbf8c9dca46fbd7916640c417d13bf8b5af30]) Fix serving index files with rack static file server [#2180 state:resolved] http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
Referenced by
- 2180 Routing errors serving static files with Mongrel (from [0c9bbf8c9dca46fbd7916640c417d13bf8b5af30]) Fix ser...