From 52538ca9070b5e7ead5d0fa731e82a622dc6f3ee Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Thu, 8 Aug 2024 18:32:23 +0200 Subject: [PATCH] docs: recommend SCRIPT_NAME=/subfolder --- docs/source/faq.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 10572c1d..8c52a486 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -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 ============