Skip to content

Commit 52538ca

Browse files
committed
docs: recommend SCRIPT_NAME=/subfolder
1 parent 687b78d commit 52538ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/faq.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ How do I set SCRIPT_NAME?
1313
By default ``SCRIPT_NAME`` is an empty string. The value could be set by
1414
setting ``SCRIPT_NAME`` in the environment or as an HTTP header. Note that
1515
this headers contains and underscore, so it is only accepted from trusted
16-
forwarders listed in the ``forwarded-allow-ips`` setting.
16+
forwarders listed in the :ref:`forwarded-allow-ips` setting.
1717

18+
.. note::
19+
20+
If your application should appear in a subfolder, your ``SCRIPT_NAME``
21+
would typically start with single slash but contain no trailing slash.
1822

1923
Server Stuff
2024
============

0 commit comments

Comments
 (0)