Run #ASP.NET on #Ubuntu using .NET Core
Yes, it’s possible to host ASP.NET on linux, and there are plenty of great tutorials out there, and this is just a quick post with a few of my tips thrown in…
I followed the tutorial at https://www.microsoft.com/net/learn/web/aspnet-hello-world-tutorial, using a EC2 instance from Amazon.
However, at the point where it says, “point a browser at https://localhost:5001” I had to get a bit inventive,
So, I opened up port 5001 in security settings, and I created a release build
dotnet build –configuration Release
Navigated to the “publish” folder and ran this command to have the app listen on all hosts, not just localhost.
dotnet myWebAppp.dll –urls https://0.0.0.0:5001
Then from my mac, I could navigate to https://%5BIP%5D:5001, and dismissed the bad cert warning.