README.md in riiif-1.1.3 vs README.md in riiif-1.2.0
- old
+ new
@@ -155,10 +155,15 @@
Rails.logger
end
Riiif::Engine.config.cache_duration_in_days = 30
```
-
+#### Special note for Passenger and Apache users
+If you are running riiif in Passenger under Apache, you must set `AllowEncodedSlashes NoDecode` in your virtual host definition. For some uses, even with that directive set, the above configuration won't work for you. You may need to explicitly decode the url, like this:
+```ruby
+require "uri"
+fs_id = URI.decode(id).sub(/\A([^\/]*)\/.*/, '\1')
+```
## Running the tests
First, build the engine
```bash
rake engine_cart:generate