You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2022/05/05 19:06:36 UTC

[couchdb-documentation] 01/01: Update reverse proxy config for nginx

This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch update-reverse-proxy-nginx
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

commit 6226c0a1f4debbb5b84700bd989fccb9cab5ec73
Author: Ronny <ro...@apache.org>
AuthorDate: Thu May 5 21:06:31 2022 +0200

    Update reverse proxy config for nginx
    
    Fix #675
---
 src/best-practices/reverse-proxies.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/best-practices/reverse-proxies.rst b/src/best-practices/reverse-proxies.rst
index 46102ac..a04fc76 100644
--- a/src/best-practices/reverse-proxies.rst
+++ b/src/best-practices/reverse-proxies.rst
@@ -104,8 +104,9 @@ as ``http://domain.com/couchdb/db1/doc1`` are proxied to
 .. code-block:: text
 
     location /couchdb {
-        rewrite /couchdb/(.*) /$1 break;
-        proxy_pass http://localhost:5984;
+        rewrite ^ $request_uri;
+        rewrite ^/couchdb/(.*) /$1 break;
+        proxy_pass http://localhost:5984$uri;
         proxy_redirect off;
         proxy_buffering off;
         proxy_set_header Host $host;