Skip to content

Commit

Permalink
docs: recommend SCRIPT_NAME=/subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Aug 8, 2024
1 parent 687b78d commit 52538ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
============
Expand Down

0 comments on commit 52538ca

Please sign in to comment.