The .NET runtime, Nginx and your application are not installed automatically: you start from a clean Ubuntu 24.04 system. .NET is free; only a SQL Server database in Standard or Enterprise edition needs a paid license.
Choose the resources of your VPS
ASP.NET Core runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Host an ASP.NET Core app on an Ubuntu 24.04 VPS: .NET 10, Kestrel as a systemd service, Nginx as a reverse proxy and HTTPS with Certbot.
No Windows Server needed: .NET runs on Ubuntu 24.04. Kestrel serves the app, Nginx publishes it over HTTPS, and you keep root access.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini with Ubuntu 24.04, then connect over SSH as root with your key and update the system.
Install the .NET 10 SDK
Install the SDK from the Ubuntu repositories, as the Microsoft documentation describes. If you publish the app from your own machine, the aspnetcore-runtime-10.0 package is enough on the server.
Publish the application
Add UseForwardedHeaders in Program.cs so the app sees the real scheme and client IP behind Nginx, then publish in Release mode to /var/www.
Create the Kestrel service
Create /etc/systemd/system/kestrel-myapp.service with ExecStart=/usr/bin/dotnet /var/www/myapp/MyApp.dll, User=www-data and ASPNETCORE_ENVIRONMENT=Production, then enable it. Kestrel listens on 127.0.0.1:5000.
Put Nginx in front and enable HTTPS
Install Nginx, create a server block with proxy_pass to http://127.0.0.1:5000 and the X-Forwarded headers, then request a Let’s Encrypt certificate with Certbot.
Choose the resources of your VPS
ASP.NET Core runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Ubuntu 24.04
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run ASP.NET Core on a VPS?
ASP.NET Core is the web framework of .NET, free, cross platform and released under the MIT license. You use it to build MVC or Razor Pages sites, REST APIs, Blazor applications and real time services with SignalR. The app ships with its own web server, Kestrel, and runs on Linux as well as on Windows, with no Microsoft license to buy.
On a Linux VPS you avoid the cost of a Windows Server license and control the whole chain: .NET runtime version, systemd service, Nginx proxy, certificates and database. Microsoft documents this exact setup, Kestrel behind Nginx, and this guide follows it in order.
No Windows license to pay
.NET 10 is available in the Ubuntu 24.04 repositories. Your application runs on Linux, with no Windows Server or IIS to license.
Root access for systemd and Nginx
With root access you register Kestrel as a systemd service that restarts on its own, and you configure Nginx the way you want.
Dedicated resources
The 2 vCPU and 8 GB of RAM of the VPS Mini are dedicated to your application, its background tasks and its database.
Dedicated IPv4 and DDoS protection
Your API or Blazor site answers on a public IPv4 of its own, behind the DDoS protection included with every VPS.
Before you start
Good to know: The .NET runtime, Nginx and your application are not installed automatically: you start from a clean Ubuntu 24.04 system. .NET is free; only a SQL Server database in Standard or Enterprise edition needs a paid license.
Ubuntu 24.04 LTS (.NET 10 in the Ubuntu repositories)
VPS Mini (2 vCPU, 8 GB RAM) to start
A domain name pointing to the VPS IPv4
Ports 22, 80 and 443 open
A database: PostgreSQL, MySQL, SQLite or SQL Server
An external SMTP service (port 587) if the app sends email
Install ASP.NET Core on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini with Ubuntu 24.04, then connect over SSH as root with your key and update the system.
Install the .NET 10 SDK: Install the SDK from the Ubuntu repositories, as the Microsoft documentation describes. If you publish the app from your own machine, the aspnetcore-runtime-10.0 package is enough on the server.
Publish the application: Add UseForwardedHeaders in Program.cs so the app sees the real scheme and client IP behind Nginx, then publish in Release mode to /var/www.
Create the Kestrel service: Create /etc/systemd/system/kestrel-myapp.service with ExecStart=/usr/bin/dotnet /var/www/myapp/MyApp.dll, User=www-data and ASPNETCORE_ENVIRONMENT=Production, then enable it. Kestrel listens on 127.0.0.1:5000.
Put Nginx in front and enable HTTPS: Install Nginx, create a server block with proxy_pass to http://127.0.0.1:5000 and the X-Forwarded headers, then request a Let’s Encrypt certificate with Certbot.
For which projects?
REST API for a mobile app
Blazor Server application
Internal company portal
Real time service with SignalR
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run ASP.NET Core on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install ASP.NET Core on a VPS?
Order an Ubuntu 24.04 VPS, connect over SSH and install dotnet-sdk-10.0 or aspnetcore-runtime-10.0 from the Ubuntu repositories. Publish your app with dotnet publish, register it as a systemd service that starts Kestrel on 127.0.0.1:5000, then put Nginx in front as a reverse proxy and enable HTTPS with Certbot.
Which plan should I choose for a .NET application?
The VPS Mini (2 vCPU, 8 GB RAM, 40 GB storage) is enough for most ASP.NET Core APIs and sites, PostgreSQL database included. If you install SQL Server on the same VPS, Microsoft asks for at least 2 GB of RAM for it alone; with heavy traffic or several apps, move to the VPS Essential (4 vCPU, 16 GB).
Is ASP.NET Core free on Linux?
Yes. .NET and ASP.NET Core are open source under the MIT license and free, including in production. You need neither Windows Server nor Visual Studio: the command line SDK is enough. Only some SQL Server editions, Standard and Enterprise, are paid; PostgreSQL, MySQL, SQLite and SQL Server Express are free.
Why put Nginx in front of Kestrel?
Kestrel can face the internet directly, but the Microsoft documentation describes a reverse proxy such as Nginx to handle HTTPS, host several sites on one IP and filter requests. In this setup, remember the ForwardedHeaders middleware: without it, the app thinks it receives plain HTTP and sees the proxy IP instead of the client one.
Which .NET version is on Ubuntu 24.04?
Ubuntu 24.04 ships .NET 10, a long term support release, in its official repositories. .NET 9 is still available through the ppa:dotnet/backports repository, but Microsoft no longer supports .NET 8 or .NET 9. For a new project, target net10.0 and install dotnet-sdk-10.0 or aspnetcore-runtime-10.0.