How to setup an asp.net core website

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

https://forum.openlitespeed.org/threads/asp-net-site.3648/

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:

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-5.0

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 example.com *.example.com;
location / {
proxy_pass http://127.0.0.1:5000;
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 asp.net 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 !!!
 
Top