@tvlooy then you should add:

````rst
.. _the-web-directory:
````
Above that note, otherwise Sphinx can't find the reference.

I prefer to make the reference somewhat more discribable and because the pointer is not before a heading, you need to include a link name:

````rst
:ref:`the web directory <setting-document-root>`
````