{"action":"closed","issue":{"url":"https://api.github.com/repos/expressjs/serve-index/issues/53","repository_url":"https://api.github.com/repos/expressjs/serve-index","labels_url":"https://api.github.com/repos/expressjs/serve-index/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/serve-index/issues/53/comments","events_url":"https://api.github.com/repos/expressjs/serve-index/issues/53/events","html_url":"https://github.com/expressjs/serve-index/issues/53","id":153812782,"number":53,"title":"How to use serve-index behind a reverse proxy ?","user":{"login":"alemarre","id":12772211,"avatar_url":"https://avatars.githubusercontent.com/u/12772211?v=3","gravatar_id":"","url":"https://api.github.com/users/alemarre","html_url":"https://github.com/alemarre","followers_url":"https://api.github.com/users/alemarre/followers","following_url":"https://api.github.com/users/alemarre/following{/other_user}","gists_url":"https://api.github.com/users/alemarre/gists{/gist_id}","starred_url":"https://api.github.com/users/alemarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemarre/subscriptions","organizations_url":"https://api.github.com/users/alemarre/orgs","repos_url":"https://api.github.com/users/alemarre/repos","events_url":"https://api.github.com/users/alemarre/events{/privacy}","received_events_url":"https://api.github.com/users/alemarre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-09T16:12:14Z","updated_at":"2016-05-10T14:54:13Z","closed_at":"2016-05-10T14:54:13Z","body":"Hi,\r\n\r\nI'd like to use `serve-index` behind a reverse proxy that adds a root context, i. e : \r\n`mydomain.com/root-context/my-folder` --> `localhost:3000/my-folder`\r\n\r\nThe `serve-static` module works fine (if I enter the full adresse by hand, it is correctly resolved), but URLs generated by `serve-index` are absolute URLs, and are not taking in account the root context.\r\n\r\nExample of url generated by `serve-index`: \r\n`mydomain.com/my-folder/other` (should be `mydomain.com/root-context/my-folder/other`)\r\n\r\nTo summarize : I can access my content with direct URLs, but I can't navigate through `serve-index`'s interface.\r\n\r\n- Why using absolute URLS and not relative ones ? For instance, the Apache module uses relative URLs when serving directory files list.\r\n- If absolutes URLs are absolutely needed, how can I configure a root context ?\r\n\r\nThanks for your help"}}