wohali opened a new issue #1199: Provide mechanism for hosting in subdirs 
behind reverse proxies
URL: https://github.com/apache/couchdb-fauxton/issues/1199
 
 
   Comes from: apache/couchdb#2035 and apache/couchdb-documentation#413.
   
   Multiple users have complained that they cannot install CouchDB behind a 
reverse proxy that is not hosting CouchDB at the top-level `/` without Fauxton 
breaking.
   
   @adrienverge provided this comprehensive analysis:
   
   -----
   
   Hi @wohali,
   
   I just tried to access Fauxton at `http://localhost:8080/db/_utils/`, with 
CouchDB behind a nginx reverse proxy at `/db/`, and I get the same result as in 
apache/couchdb#2035: Fauxton loads correctly, databases are listed, but opening 
one fails with `Unexpected token < in JSON at position 0`. By looking at the 
*network tab* in my browser, it seems that failure comes from an erroneous 
access to `http://localhost:8080/test` instead of 
`http://localhost:8080/db/test`:
   ![Capture d’écran de 2019-05-23 
08-19-42](https://user-images.githubusercontent.com/5244945/58230304-44598680-7d34-11e9-8f6a-547f2459976f.png)
   
   I would say it's a *bug* or *limitation* of Fauxton, not a configuration 
problem, because:
   - Fauxton successfully loads `_all_dbs`, databases infos, and `_all_docs` 
inside databases: it is able to use the reverse-proxied URL without any extra 
conf.
   - I briefly looked into [Fauxton 
code](https://github.com/apache/couchdb-fauxton/blob/master/settings.json.default.json)
 and did not find any configuration option to pass a sub-URL.
   
   So in my opinion, it's not documentation to improve here, but a problem to 
fix in https://github.com/apache/couchdb-fauxton.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to