diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-28 18:53:00 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-28 18:53:00 -0300 |
commit | 73aab036eeeb297dc85dc812f54e26aa943f48f7 (patch) | |
tree | 4176d0af72d6975483f4b13924608b5bf106d43d /guides | |
parent | 233ceda594c19331f493ed1436c8c26b5d1aaf1b (diff) | |
parent | 3ff39494cdea67502dbd6465358eca3e14a84d6b (diff) | |
download | rails-73aab036eeeb297dc85dc812f54e26aa943f48f7.tar.gz rails-73aab036eeeb297dc85dc812f54e26aa943f48f7.tar.bz2 rails-73aab036eeeb297dc85dc812f54e26aa943f48f7.zip |
Merge pull request #20017 from eliotsykes/configurable-static-index-filename
config.static_index configures directory Index "index.html" filename
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 31b937c925..0e669ed597 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -202,7 +202,7 @@ The full set of methods that can be used in this block are as follows: Every Rails application comes with a standard set of middleware which it uses in this order in the development environment: * `ActionDispatch::SSL` forces every request to be under HTTPS protocol. Will be available if `config.force_ssl` is set to `true`. Options passed to this can be configured by using `config.ssl_options`. -* `ActionDispatch::Static` is used to serve static assets. Disabled if `config.serve_static_files` is `false`. +* `ActionDispatch::Static` is used to serve static assets. Disabled if `config.serve_static_files` is `false`. Set `config.static_index` if you need to serve a static directory index file that is not named `index`. For example, to serve `main.html` instead of `index.html` for directory requests, set `config.static_index` to `"main"`. * `Rack::Lock` wraps the app in mutex so it can only be called by a single thread at a time. Only enabled when `config.cache_classes` is `false`. * `ActiveSupport::Cache::Strategy::LocalCache` serves as a basic memory backed cache. This cache is not thread safe and is intended only for serving as a temporary memory cache for a single thread. * `Rack::Runtime` sets an `X-Runtime` header, containing the time (in seconds) taken to execute the request. |