Update deploying.rst (#1392)

Use same base url for Apache as in the example
This commit is contained in:
Aslak Raanes 2021-07-13 19:42:27 +02:00 committed by GitHub
commit 4054e96a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ For `Apache <https://httpd.apache.org/>`__, you can use the ``ProxyPass`` direct
Then add these directives to proxy traffic::
ProxyPass /datasette-prefix/ http://127.0.0.1:8009/datasette-prefix/
ProxyPass /my-datasette/ http://127.0.0.1:8009/my-datasette/
ProxyPreserveHost On
The `ProxyPreserveHost On <https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost>`__ directive ensures that the original ``Host:`` header from the incoming request is passed through to Datasette. Datasette needs this to correctly assemble links to other pages using the :ref:`datasette_absolute_url` method.