lunawen / lunawen-blog-comment

0 stars 0 forks source link

devops/20220409-luna-tech-deploy-dotnet-webapi-ubuntu/ #47

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Deploy a Dotnet Web API on Ubuntu with Nginx Reserve Proxy - Luna Tech

https://lunawen.com/devops/20220409-luna-tech-deploy-dotnet-webapi-ubuntu/

camouflaged-penguin commented 1 year ago

Your Guide was exactly what i was looking for. I just have Problems with one section of it. Under Install package HTTP Overrides is a code section. I don't have any clue where to put this code. Does it has to be in the APP configuration or something like this?

camouflaged-penguin commented 1 year ago

The file content of sudo nano /etc/nginx/sites-available/default does not work. something with the brackets is wrong but i could not find out how the syntax is suppose to be.

lunawen commented 1 year ago

Hi,

For HTTPOverride code, you need to put it in your dotnet application - Program.cs file.

The sites-available/default file should be correct (I checked the brackets), can you be more specific with the issue? what's the error code? what's your file look like?

Cheers, Luna On 2 Mar 2023 at 04:17 +1100, lunawen/lunawen-blog-comment @.***>, wrote:

nano /etc/nginx/sites-available/default

camouflaged-penguin commented 1 year ago

hi lunawen, yes you are right. I found it out after checking your resources and references.

The sites-available default was a formatting problem. when i put the code into my file it got seperated at a place where a comment started. i fixed it and it worked fine then. Thx for your great Tutorial!