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:35 UTC
[couchdb-documentation] branch update-reverse-proxy-nginx created (now 6226c0a)
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a change to branch update-reverse-proxy-nginx
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
at 6226c0a Update reverse proxy config for nginx
This branch includes the following new commits:
new 6226c0a Update reverse proxy config for nginx
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-documentation] 01/01: Update reverse proxy config for nginx
Posted by ro...@apache.org.
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;