{"action":"closed","issue":{"url":"https://api.github.com/repos/rsercano/mongoclient/issues/237","repository_url":"https://api.github.com/repos/rsercano/mongoclient","labels_url":"https://api.github.com/repos/rsercano/mongoclient/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/rsercano/mongoclient/issues/237/comments","events_url":"https://api.github.com/repos/rsercano/mongoclient/issues/237/events","html_url":"https://github.com/rsercano/mongoclient/issues/237","id":190344997,"number":237,"title":"\"Route not found\" issue when adding path to ROOT_URL","user":{"login":"aalaesar","id":18649249,"avatar_url":"https://avatars.githubusercontent.com/u/18649249?v=3","gravatar_id":"","url":"https://api.github.com/users/aalaesar","html_url":"https://github.com/aalaesar","followers_url":"https://api.github.com/users/aalaesar/followers","following_url":"https://api.github.com/users/aalaesar/following{/other_user}","gists_url":"https://api.github.com/users/aalaesar/gists{/gist_id}","starred_url":"https://api.github.com/users/aalaesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalaesar/subscriptions","organizations_url":"https://api.github.com/users/aalaesar/orgs","repos_url":"https://api.github.com/users/aalaesar/repos","events_url":"https://api.github.com/users/aalaesar/events{/privacy}","received_events_url":"https://api.github.com/users/aalaesar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T15:22:44Z","updated_at":"2016-11-22T15:55:53Z","closed_at":"2016-11-22T15:55:53Z","body":"Hello\r\nI am using Mongoclient as a boundled node.js application (using meteor build)\r\n(The application is built using the meteor version installed by the meteor installation script which is 1.4.2.3 as this moment)\r\nAs mongoclient is intended to be used behind a reverse proxy, the environment variable ROOT_URL have been set with \"ROOT_URL='http://localhost/mongoclient' aka **domain/path**\r\n(tests using address translation do not work)\r\nThe other environment variable are also defined properly and work well.\r\n\r\nHowever, when using the root URL, mongoclient loads and show a \"route not found' error message.\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434033/662e48dc-ada6-11e6-8d1d-fbab12e31310.png)\r\n\r\nNo previously defined connections to mongo db  are available in the **connect menu.**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434076/8f1ad81e-ada6-11e6-98ef-7d15668d0083.png)\r\n\r\nWhen clicking on the **Go to Dashboard**, the URL appears to be changed to `http://localhost/databaseStats` and mongoclient  works properly.\r\nThe configured connections are again available.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434303/889bdec4-ada7-11e6-81a0-c5c034d7910a.png)\r\n\r\nAccessing directly\r\n`http://localhost/` or `http://localhost/databaseStats` \r\nor `http://localhost/mongoclient/databaseStats` return a 404 error\r\n(this is an expected behaviour :+1: )\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434445/19a087b2-ada8-11e6-88a6-f2744173f6a8.png)\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434011/4bbe588e-ada6-11e6-87b4-58387453ff7f.png)\r\n\r\nThe health check works also as intended :`http://localhost/mongoclient/healthcheck` :+1: \r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434561/9502e710-ada8-11e6-9607-f68a1f46a0f1.png)\r\n\r\nWhen changing ROOT_URL to a simplier url like `http://localhost/`, mongodb works fine.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/18649249/20434676/401938ca-ada9-11e6-90e9-4aa437cc8d35.png)\r\nThis behaviour have been observed both is **javascript** mode and **websocket** mode\r\nThis is an issue as it is not suitable for production use.\r\n\r\nRegards,\r\nAal."}}
{"actor":{"display_login":"rsercano"}}