{"action":"created","issue":{"url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/887","labels_url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/887/comments","events_url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/887/events","html_url":"https://github.com/nodejitsu/node-http-proxy/issues/887","id":108639397,"number":887,"title":"Impossible to ignore proxy path prefix","user":{"login":"borNfreee","id":3725595,"avatar_url":"https://avatars.githubusercontent.com/u/3725595?v=3","gravatar_id":"","url":"https://api.github.com/users/borNfreee","html_url":"https://github.com/borNfreee","followers_url":"https://api.github.com/users/borNfreee/followers","following_url":"https://api.github.com/users/borNfreee/following{/other_user}","gists_url":"https://api.github.com/users/borNfreee/gists{/gist_id}","starred_url":"https://api.github.com/users/borNfreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borNfreee/subscriptions","organizations_url":"https://api.github.com/users/borNfreee/orgs","repos_url":"https://api.github.com/users/borNfreee/repos","events_url":"https://api.github.com/users/borNfreee/events{/privacy}","received_events_url":"https://api.github.com/users/borNfreee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-28T11:27:39Z","updated_at":"2016-01-22T09:39:23Z","closed_at":"2015-12-03T07:03:44Z","body":"Hi,\r\n\r\nI need to proxy requests from `/api` to the root of other site: `http://test.com`:\r\n\r\n`/api/users` -> `http://test.com/users`\r\n`/api/users/1` -> `http://test.com/users/1`\r\n\r\nBut all my requests lead to `http://test.com/api/*`\r\nHow to ignore `/api` prefix but not to ignore other path?\r\nWhen I use `ignorePath` settings all my requests lead to `http://test.com`.\r\n\r\nConfig:\r\n\r\n```js\r\nserver.middleware = proxyMiddleware('/api', {target: 'http://test.com', proxyHost: 'test.com'});\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/comments/173862107","html_url":"https://github.com/nodejitsu/node-http-proxy/issues/887#issuecomment-173862107","issue_url":"https://api.github.com/repos/nodejitsu/node-http-proxy/issues/887","id":173862107,"user":{"login":"mik01aj","id":3027415,"avatar_url":"https://avatars.githubusercontent.com/u/3027415?v=3","gravatar_id":"","url":"https://api.github.com/users/mik01aj","html_url":"https://github.com/mik01aj","followers_url":"https://api.github.com/users/mik01aj/followers","following_url":"https://api.github.com/users/mik01aj/following{/other_user}","gists_url":"https://api.github.com/users/mik01aj/gists{/gist_id}","starred_url":"https://api.github.com/users/mik01aj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mik01aj/subscriptions","organizations_url":"https://api.github.com/users/mik01aj/orgs","repos_url":"https://api.github.com/users/mik01aj/repos","events_url":"https://api.github.com/users/mik01aj/events{/privacy}","received_events_url":"https://api.github.com/users/mik01aj/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T09:39:23Z","updated_at":"2016-01-22T09:39:23Z","body":"That's some very good news, thanks!"}}