You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Joan Touzet (JIRA)" <ji...@apache.org> on 2017/04/24 00:02:04 UTC

[jira] [Resolved] (COUCHDB-3155) Fauxton does not work reverse proxied into a subfolder

     [ https://issues.apache.org/jira/browse/COUCHDB-3155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joan Touzet resolved COUCHDB-3155.
----------------------------------
    Resolution: Duplicate

This requires a custom Fauxton build. See COUCHDB-2403 for details.

In short, you edit the app.root and/or app.host variables in https://github.com/apache/couchdb-fauxton/blob/master/settings.json.default.json and create and deploy a custom Fauxton build.

> 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.
> Excerpt from nginx configuration:
> {noformat}
>     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;
>     }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)