title: Problem with SignalR when hosting Serverside Blazor App
body: <p>When I run my server side Blazor app on development machine in Visual Studio code everything works fine. 
  But after deployment to a Linux server with Apache2 there is a problem with WSS:// SignalR connection from client to server.</p>
  
  <p>Running Root page of <a href="https://shop.gastroblitz.de/" rel="nofollow noreferrer">https://shop.gastroblitz.de/</a>
  results in Console Error:</p>
  
  <p>Firefox kann keine Verbindung zu dem Server unter wss://shop.gastroblitz.de/_blazor?id=P1LOmrVSgCD4fAWd9lAhHQ aufbauen. blazor.server.js:1:30021
  [2019-07-17T14:58:20.948Z] Error: Failed to start the transport 'WebSockets': null</p>
  
  <p>I have reverse proxy configuration that redirects 
  - https:// calls in server to <a href="http://localhost:5000" rel="nofollow noreferrer">http://localhost:5000</a> (where dotnet service is hosted)
  - wss:// calls into ws://</p>
  
  <p>seems to work fine on https:// but I don't get work the SignalR thing which is initiated with wss:// and results in the upper error...</p>
  
  <p>Using Visual Studio newest preview and dotnetcore-preview6.</p>
  
  <pre><code>public class Startup
  {
      public Startup(IConfiguration configuration)
      {
          Configuration = configuration;
  
          SqlHub.ConnectionString = Configuration["ConnectionString"];
      }
  
      public IConfiguration Configuration { get; }
  
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddRazorPages();
          services.AddServerSideBlazor();
          services.AddScoped&lt;OrderState&gt;();
          services.AddScoped&lt;StoreData&gt;();
          services.AddScoped&lt;BasketManager&gt;();
          services.AddBlazoredModal();
      }
  
      public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
          else
          {
              app.UseExceptionHandler("/Home/Error");
              app.UseHsts();
          }
  
          //app.UseHttpsRedirection();
          app.UseStaticFiles();
  
          app.UseRouting();
  
          app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapBlazorHub();
              endpoints.MapFallbackToPage("/_Host");
          });
      }
  </code></pre>
  
  <p>I want to have the whole Blazor app on the server like it is running in my Visual Studio environment. Would be great if someone has an useful hint regarding SSL / wss and all the configuration stuff... thx!</p>