adrienverge commented on issue #413: Enhance nginx reverse proxy support for subdirectory hosting URL: https://github.com/apache/couchdb-documentation/issues/413#issuecomment-495085951 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`:  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
