docs: recommend SCRIPT_NAME=/subfolder

This commit is contained in:
Paul J. Dorn 2024-08-08 18:32:23 +02:00
parent 687b78d20c
commit 52538ca907

View File

@ -13,8 +13,12 @@ How do I set SCRIPT_NAME?
By default ``SCRIPT_NAME`` is an empty string. The value could be set by
setting ``SCRIPT_NAME`` in the environment or as an HTTP header. Note that
this headers contains and underscore, so it is only accepted from trusted
forwarders listed in the ``forwarded-allow-ips`` setting.
forwarders listed in the :ref:`forwarded-allow-ips` setting.
.. note::
If your application should appear in a subfolder, your ``SCRIPT_NAME``
would typically start with single slash but contain no trailing slash.
Server Stuff
============