Skip to content
Myr

Merge pull request #2210 from Larivact/patch-2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Clarify APPLICATION_ROOT documentation

authored by David Lord · committed by GitHub · parents 17685da, 2995366 · Browse files · 1 file+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:docs/config.rst+7 added-7 removed
130 unmodified lines
131 help. Setting a ``SERVER_NAME`` also132 by default enables URL generation133 without a request context but with an134 application context.135``APPLICATION_ROOT`` If the application does not occupy136 a whole domain or subdomain this can137 be set to the path where the application138 is configured to live. This is for139 session cookie as path value. If140 domains are used, this should be141 ``None``.135``APPLICATION_ROOT`` The path value used for the session136 cookie if ``SESSION_COOKIE_PATH`` isn't137 set. If it's also ``None`` ``'/'`` is used.138 Note that to actually serve your Flask139 app under a subpath you need to tell140 your WSGI container the ``SCRIPT_NAME``141 WSGI environment variable.142``MAX_CONTENT_LENGTH`` If set to a value in bytes, Flask will143 reject incoming requests with a144 content length greater than this by145 returning a 413 status code.
334 unmodified lines