aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYuki Nishijima <mail@yukinishijima.net>2015-11-14 21:57:56 -0800
committerYuki Nishijima <mail@yukinishijima.net>2015-11-16 03:39:24 -0800
commitce83dc98bb042b71c19bec600c2f3885efa33adf (patch)
tree05679bcf98b6d1c9c8deddcd448565547cb9cf73 /guides
parentfdf5d4dfc30ce5a599392305567c0230c21b9b84 (diff)
downloadrails-ce83dc98bb042b71c19bec600c2f3885efa33adf.tar.gz
rails-ce83dc98bb042b71c19bec600c2f3885efa33adf.tar.bz2
rails-ce83dc98bb042b71c19bec600c2f3885efa33adf.zip
Make the `static_index` config part of the `config.public_server` config
Also call it `public_server.index_name` so it'll make more sense.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
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.