rev111 commented on code in PR #5557:
URL: https://github.com/apache/couchdb/pull/5557#discussion_r2121802354
##########
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:
Removed the lines and appended the text a bit.
Also line 283 in chapter "Authentication with Caddy 2 as a reverse proxy"
possibly contains a mistake when stating "This setup leans entirely on nginx
performing...". I'm not sure if it is correct, or it should be "caddy" instead
of "nginx", or if the paragraph has been erroneously copied from the identical
paragraph in the nginx chapter at line 148 and was accidentally left, so I did
not change it.
--
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]