{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/937","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/937/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/937/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/issues/937","id":314207981,"number":937,"title":"IIS Rewrite rules not working when published to GCP ","user":{"login":"samgithub-duplicate","id":731590,"avatar_url":"https://avatars2.githubusercontent.com/u/731590?v=4","gravatar_id":"","url":"https://api.github.com/users/samgithub-duplicate","html_url":"https://github.com/samgithub-duplicate","followers_url":"https://api.github.com/users/samgithub-duplicate/followers","following_url":"https://api.github.com/users/samgithub-duplicate/following{/other_user}","gists_url":"https://api.github.com/users/samgithub-duplicate/gists{/gist_id}","starred_url":"https://api.github.com/users/samgithub-duplicate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samgithub-duplicate/subscriptions","organizations_url":"https://api.github.com/users/samgithub-duplicate/orgs","repos_url":"https://api.github.com/users/samgithub-duplicate/repos","events_url":"https://api.github.com/users/samgithub-duplicate/events{/privacy}","received_events_url":"https://api.github.com/users/samgithub-duplicate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"iantalarico","id":5264734,"avatar_url":"https://avatars0.githubusercontent.com/u/5264734?v=4","gravatar_id":"","url":"https://api.github.com/users/iantalarico","html_url":"https://github.com/iantalarico","followers_url":"https://api.github.com/users/iantalarico/followers","following_url":"https://api.github.com/users/iantalarico/following{/other_user}","gists_url":"https://api.github.com/users/iantalarico/gists{/gist_id}","starred_url":"https://api.github.com/users/iantalarico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iantalarico/subscriptions","organizations_url":"https://api.github.com/users/iantalarico/orgs","repos_url":"https://api.github.com/users/iantalarico/repos","events_url":"https://api.github.com/users/iantalarico/events{/privacy}","received_events_url":"https://api.github.com/users/iantalarico/received_events","type":"User","site_admin":false},"assignees":[{"login":"iantalarico","id":5264734,"avatar_url":"https://avatars0.githubusercontent.com/u/5264734?v=4","gravatar_id":"","url":"https://api.github.com/users/iantalarico","html_url":"https://github.com/iantalarico","followers_url":"https://api.github.com/users/iantalarico/followers","following_url":"https://api.github.com/users/iantalarico/following{/other_user}","gists_url":"https://api.github.com/users/iantalarico/gists{/gist_id}","starred_url":"https://api.github.com/users/iantalarico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iantalarico/subscriptions","organizations_url":"https://api.github.com/users/iantalarico/orgs","repos_url":"https://api.github.com/users/iantalarico/repos","events_url":"https://api.github.com/users/iantalarico/events{/privacy}","received_events_url":"https://api.github.com/users/iantalarico/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-04-13T18:30:50Z","updated_at":"2018-04-24T14:30:07Z","closed_at":null,"author_association":"NONE","body":"I am publishing to WinServer 2016 Compute Engine.  My redirect rules from HTTP --> HTTPS are not working.  The site still allows HTTP.\r\n\r\nNote: HtttRedirect and URL ReWrite 2.1 are installed on the server.  -- See attached files.\r\n![iisconfigurationwinserver2016](https://user-images.githubusercontent.com/731590/38751581-84650a12-3f26-11e8-8228-1da99a779134.png)\r\n\r\n![urlrewritemodule](https://user-images.githubusercontent.com/731590/38751592-8df19960-3f26-11e8-8d63-5ba42fcd6dda.png)\r\n\r\nMy full web-config (from VS2017) is \r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <system.webServer> \r\n    <rewrite>\r\n       <rules>\r\n           <rule name=\"HTTPS Redirect\" enabled=\"true\" stopProcessing=\"true\">\r\n               <match url=\"(.*)\" />\r\n           <conditions>\r\n                       <add input=\"{HTTP_X_FORWARDED_PROTO}\" pattern=\"https\" negate=\"true\" />\r\n               </conditions>\r\n           <action type=\"Redirect\" url=\"https://{HTTP_HOST}/{R:1}\" />\r\n           </rule>\r\n       </rules>\r\n   </rewrite>\r\n    <handlers>\r\n      <remove name=\"aspNetCore\"/>\r\n      <add name=\"aspNetCore\" path=\"*\" verb=\"*\" modules=\"AspNetCoreModule\" resourceType=\"Unspecified\"/>\r\n    </handlers>\r\n    <aspNetCore processPath=\"%LAUNCHER_PATH%\" arguments=\"%LAUNCHER_ARGS%\" stdoutLogEnabled=\"false\" stdoutLogFile=\".\\logs\\stdout\" />\r\n  </system.webServer>\r\n</configuration>\r\n\r\n\r\nIs it possible that the Google Cloud Tools for Visual Studio is not copying web.config to GCP; or GCP is not handling the ASPNetCore IIS Integration?  My Program.cs is setup to use IIS Integration as shown below:\r\n\r\n    var host = new WebHostBuilder()\r\n           .UseKestrel()\r\n           .UseContentRoot(Directory.GetCurrentDirectory())\r\n           .UseIISIntegration()\r\n           .UseStartup<Startup>()\r\n           .Build();\r\n\r\n            host.Run();"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/comments/383953629","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/issues/937#issuecomment-383953629","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-visualstudio/issues/937","id":383953629,"user":{"login":"samgithub-duplicate","id":731590,"avatar_url":"https://avatars2.githubusercontent.com/u/731590?v=4","gravatar_id":"","url":"https://api.github.com/users/samgithub-duplicate","html_url":"https://github.com/samgithub-duplicate","followers_url":"https://api.github.com/users/samgithub-duplicate/followers","following_url":"https://api.github.com/users/samgithub-duplicate/following{/other_user}","gists_url":"https://api.github.com/users/samgithub-duplicate/gists{/gist_id}","starred_url":"https://api.github.com/users/samgithub-duplicate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samgithub-duplicate/subscriptions","organizations_url":"https://api.github.com/users/samgithub-duplicate/orgs","repos_url":"https://api.github.com/users/samgithub-duplicate/repos","events_url":"https://api.github.com/users/samgithub-duplicate/events{/privacy}","received_events_url":"https://api.github.com/users/samgithub-duplicate/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T14:30:07Z","updated_at":"2018-04-24T14:30:07Z","author_association":"NONE","body":"Here is my web.config:\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <system.webServer> \r\n    <rewrite>\r\n       <rules>\r\n           <rule name=\"HTTPS Redirect\" enabled=\"true\" stopProcessing=\"true\">\r\n               <match url=\"(.*)\" />\r\n           <conditions>\r\n                       <add input=\"{HTTP_X_FORWARDED_PROTO}\" pattern=\"https\" negate=\"true\" />\r\n               </conditions>\r\n           <action type=\"Redirect\" url=\"https://{HTTP_HOST}/{R:1}\" />\r\n           </rule>\r\n       </rules>\r\n   </rewrite>\r\n    <handlers>\r\n      <remove name=\"aspNetCore\"/>\r\n      <add name=\"aspNetCore\" path=\"*\" verb=\"*\" modules=\"AspNetCoreModule\" resourceType=\"Unspecified\"/>\r\n    </handlers>\r\n    <aspNetCore processPath=\"%LAUNCHER_PATH%\" arguments=\"%LAUNCHER_ARGS%\" stdoutLogEnabled=\"true\" stdoutLogFile=\".\\logs\\stdout\" />\r\n  </system.webServer>\r\n</configuration>"}}
{"actor":{"display_login":"samgithub-duplicate"}}