Skip to content

Commit d8de78f

Browse files
Merge pull request rails#49848 from Adrian-Hirt/main
Update documentation for config.public_file_server.enabled [ci-skip]
2 parents b897b4c + 571f8a4 commit d8de78f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

guides/source/configuring.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,11 @@ The default value depends on the `config.load_defaults` target version:
500500

501501
#### `config.public_file_server.enabled`
502502

503-
Configures Rails to serve static files from the public directory. This option defaults to `true`, but in the production environment it is set to `false` because the server software (e.g. NGINX or Apache) used to run the application should serve static files instead. If you are running or testing your app in production using WEBrick (it is not recommended to use WEBrick in production), set the option to `true`. Otherwise, you won't be able to use page caching and request for files that exist under the public directory.
503+
Configures whether Rails should serve static files from the public directory.
504+
Defaults to `true`.
505+
506+
If the server software (e.g. NGINX or Apache) should serve static files instead,
507+
set this value to `false`.
504508

505509
#### `config.railties_order`
506510

0 commit comments

Comments
 (0)