How to setup an core website

I was trying to setup an core 5.0 web api service on my Ubuntu 18.04 with openlitespeed but all I found is this old thread

I'm not trying with mono, is now 2021 where dotnet 5.0 now runs native on linux without problems, all documentation I found is about Apache or nginx, I was trying this tutorial for nginx, but I'm totally lost:

I configured an openlitespeed site as other ones that I have running on my ubuntu server, but don't know how to write a similar config on litespeed, like the ngingx suggested in in the above tutorial

This is for ngingx config and must be placed at /etc/nginx/sites-available/default .

server {
listen 80;
server_name *;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

My question are:

How and where to setup something like the nginx above sample but for OpenLiteSpeed?
There is a Guide to configure an 5.0 web site that is already running over dotnet 5.0 for OpenLiteSpeed?

Please remember I'm not talking about mono, I'm talking about a native proccess into my linux machine !!!
I am not an expert in Ubuntu. I am a .NET programmer in WPF, ASP.NET core Razor and Web API projects. My requirement is to run Wordpress (PHP) and ASP.NET website ( on the same domain with at least 2 vCPU and 4 GB RAM, which requires higher hosting plan than a normal shared hosting. So, I had 2 options: to run Wordpress on Windows (IIS) hosting, or run ASP.NET website on PHP web server (OpenLiteSpeed). I also tried Apache and nginx with directadmin panel, but OpenliteSpeed with CyberPanel worked best in combination. I am using Hetzner cloud hosting. When I was not able to run ASP.NET on OpenLiteSpeed, I was using Contabo Windows VPS: with Plesk panel. The problem was that Windows server licensing is per vCPU of around $5-7 / vCPU, which looks unfair, and there is only one option of hosting panel on Windows: Plesk. On the other hand, there are many options for panels and servers on Linux (Ubuntu), and therefore lots of tutorials on internet for those. So, I am not very comfortable with Windows hosting because of Microsoft licensing and only one panel option, which feels kind-of restricting. It is not about money, but more about freedom in programming. So, I spent 3-4 days to learn Ubuntu and setup both Wordpress and ASP.NET on same server using OpenLiteSpeed and CyberPanel.

I am right now in the middle of setting up the Hetzner cloud, so a little busy for a week. I will be in touch.