big-r81 commented on code in PR #5557:
URL: https://github.com/apache/couchdb/pull/5557#discussion_r2121199264


##########
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:
   Please remove these two (out of three) empty lines.



-- 
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]

Reply via email to