{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/IISIntegration/issues/14","labels_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/14/comments","events_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/14/events","html_url":"https://github.com/aspnet/IISIntegration/issues/14","id":111697163,"number":14,"title":"IIS virtual directories","user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/IISIntegration/labels/needs%20design","name":"needs design","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-15T20:07:19Z","updated_at":"2015-11-02T11:48:46Z","closed_at":null,"body":"When we're spun up behind IIS / HttpPlatformHandler how do we know what the virtual directory is? We need this to correctly set PathBase in the app. Ideally we'd set PathBase as part of the initial server address configuration, but at that point we're only given the port via environment variable.\r\n@davidfowl "},"comment":{"url":"https://api.github.com/repos/aspnet/IISIntegration/issues/comments/152996834","html_url":"https://github.com/aspnet/IISIntegration/issues/14#issuecomment-152996834","issue_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/14","id":152996834,"user":{"login":"rubenprins","id":7632106,"avatar_url":"https://avatars.githubusercontent.com/u/7632106?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenprins","html_url":"https://github.com/rubenprins","followers_url":"https://api.github.com/users/rubenprins/followers","following_url":"https://api.github.com/users/rubenprins/following{/other_user}","gists_url":"https://api.github.com/users/rubenprins/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenprins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenprins/subscriptions","organizations_url":"https://api.github.com/users/rubenprins/orgs","repos_url":"https://api.github.com/users/rubenprins/repos","events_url":"https://api.github.com/users/rubenprins/events{/privacy}","received_events_url":"https://api.github.com/users/rubenprins/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T11:48:46Z","updated_at":"2015-11-02T11:48:46Z","body":"Please don't require us to hard code the IIS vdir in external config files, like M.A.Hosting.json, when IIS and HttpPlatformHandler already know this.\r\n\r\nJust pass this information on for example in an environment variable, like %HTTP_PLATFORM_VDIR%, so you can say\r\n\r\n```\r\n    <httpPlatform stdoutLogEnabled=\"false\" stdoutLogFile=\"log.log\" startupTimeLimit=\"20\" processPath=\"%HOME%\\site\\kestrel.cmd\" arguments=\"http://localhost:%HTTP_PLATFORM_PORT%/%HTTP_PLATFORM_VDIR%\">\r\n      <environmentVariables></environmentVariables>\r\n    </httpPlatform>\r\n```\r\n"}}