title: How to run Kestrel behind IIS
body: <p>I have a problem in running an asp.net core website on remote server.
  I want to use kestrel with IIS ,and published it in visual studio 2017
  It's my program.cs:</p>
  
  <pre><code>public static void Main(string[] args)
  {
  var host = new WebHostBuilder()
              .UseKestrel()
              .UseContentRoot(Directory.GetCurrentDirectory())
              .UseUrls("http://example.com")
              .UseIISIntegration()
              .UseStartup&lt;Startup&gt;()
              .UseApplicationInsights()
              .Build();
  host.Run();
  }
  </code></pre>
  
  <p>At the remote server when I double click on myWebAppName.exe the kestrel run and very fast closed
  What i must do?
  pleas, help me</p>