Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kestrel hosting basics

Tags:

asp.net-core

I am in the process of developing an ASP.NET website, and I'm very intrigued by using vNext to host my website regardless of host. When I start looking for some of the basic hosting features though, I seem to think that they might not get developed. Does anyone know if the following features are going to be supported with vNext hosting with Kestrel on all platforms:

  1. SSL hosting
  2. Logging of HTTP requests (like IIS)
  3. IIS modules (I'm guessing not, I only need url rewrite to redirect to HTTPS)
like image 940
Steven C Avatar asked Oct 08 '14 15:10

Steven C


People also ask

How many connections can Kestrel handle?

The default value is 4096.

What is Kestrel explain?

Definition of kestrel : any of various small chiefly Old World falcons (genus Falco) that usually hover in the air while searching for prey: such as. a : a common Eurasian falcon (F. tinnunculus) b : an American falcon (F. sparverius) having a reddish-brown back and tail and bluish-gray wings.

What is the difference between Kestrel and IIS?

The main difference between IIS and Kestrel is that Kestrel is a cross-platform server. It runs on Linux, Windows, and Mac, whereas IIS is Windows-specific. Another essential difference between the two is that Kestrel is fully open-source, whereas IIS is closed-source and developed and maintained only by Microsoft.


2 Answers

As stated on the KestrelHttpServer repo:

This repo contains a development web server for ASP.NET vNext based on libuv.

Because it is currently slated as a development server, some features might never make their way in. For example, IIS has features for controlling IP address mapping to hostnames, limitations on bandwidth/memory/CPU, etc. A development server generally wouldn't have such features.

As to IIS modules, I can comfortably say that it definitely won't support them because they are IIS-specific, and Kestrel has nothing to do with IIS.

Regarding SSL hosting, that's certainly an interesting possibility, but it's not currently in the plans. That would certainly seem useful even for a development web server (IIS Express supports it).

Update: The repo documentation has been updated as of Sept 1 so it now reads:

This repo contains a web server for ASP.NET Core based on libuv.

like image 109
Eilon Avatar answered Oct 13 '22 18:10

Eilon


You can run kestrel behind nginx server. It will give you SSL, virtual host and other functionality. But kestrel still really unstable, so you should think twice before using it in production. Here is an article with instruction how to configure nginx to pass requests to the kestrel

like image 23
druss Avatar answered Oct 13 '22 20:10

druss