big-r81 commented on code in PR #5557:
URL: https://github.com/apache/couchdb/pull/5557#discussion_r2121824163
##########
src/docs/src/best-practices/reverse-proxies.rst:
##########
@@ -221,6 +221,24 @@ as ``http(s)://domain.com/couchdb/db1/doc1`` are proxied to
}
+To proxy the URL ``http(s)://domain.com/couchdb`` to
+``http://localhost:5984`` so that requests appended to the subdirectory, such
+as ``http(s)://domain.com/couchdb/db1/doc1`` are proxied to
+``http://localhost:5984/db1/doc1``, you have to configure a route in Caddy:
+
+.. code-block:: text
+
+ domain.com {
+
+ route /couchdb/* {
+ uri strip_prefix /couchdb
+ reverse_proxy localhost:5984
+ }
+
+ }
+
+
Review Comment:
Oh, good catch! Looks like a copy/paste error. We would be pleased if you
could fix this error at the same time and while you have a working caddy setup,
can you test/evaluate the provided config samples if these are correct?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]