Daniel Holth created COUCHDB-3155:
-------------------------------------

             Summary: Fauxton does not work reverse proxied into a subfolder
                 Key: COUCHDB-3155
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3155
             Project: CouchDB
          Issue Type: Bug
          Components: Fauxton
            Reporter: Daniel Holth


I like to use couchdb behind nginx in a subdirectory, like so, but Fauxton 
always requests /_session instead of /db/_session for example. Instead, Fauxton 
should build URLs relative to where it was requested from.

    location /db {
        rewrite /db/(.*) /$1 break;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $proxy_host;

        proxy_pass http://127.0.0.1:5984;
        proxy_redirect https://127.0.0.1:5984 https://$host/db;
    }




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to