diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-16 14:40:38 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-16 14:40:38 +0100 |
commit | 0ebb0f61c3c66df517c1277265f337a09928da86 (patch) | |
tree | 6e929ad8ccf82e65e650e3cf60cd5dca3052b2ed /guides | |
parent | 9dcf330946a8bef0a0e2fb6e6d1bb92eae62a1da (diff) | |
parent | ce83dc98bb042b71c19bec600c2f3885efa33adf (diff) | |
download | rails-0ebb0f61c3c66df517c1277265f337a09928da86.tar.gz rails-0ebb0f61c3c66df517c1277265f337a09928da86.tar.bz2 rails-0ebb0f61c3c66df517c1277265f337a09928da86.zip |
Merge pull request #22298 from yuki24/make-static-index-part-of-public-file-server-config
Make the `config.static_index` option part of the `config.public_server` option
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 ee3f742367..729d1cc661 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -199,7 +199,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.public_file_server.enabled` 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"`. +* `ActionDispatch::Static` is used to serve static assets. Disabled if `config.public_file_server.enabled` is `false`. Set `config.public_file_server.index_name` 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.public_file_server.index_name` 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. |