Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Commit 631377e

Browse files
authored
Merge pull request #724 from apache/update-reverse-proxy-nginx
Update reverse proxy config for nginx
2 parents 146d1a9 + 6226c0a commit 631377e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/best-practices/reverse-proxies.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ as ``http://domain.com/couchdb/db1/doc1`` are proxied to
104104
.. code-block:: text
105105
106106
location /couchdb {
107-
rewrite /couchdb/(.*) /$1 break;
108-
proxy_pass http://localhost:5984;
107+
rewrite ^ $request_uri;
108+
rewrite ^/couchdb/(.*) /$1 break;
109+
proxy_pass http://localhost:5984$uri;
109110
proxy_redirect off;
110111
proxy_buffering off;
111112
proxy_set_header Host $host;

0 commit comments

Comments
 (0)