Skip to content

Host ASP.NET Core on Linux with Nginx : the sites-available and sites-enabled folders are not created after installing Nginx. #36379

@lamereactor

Description

@lamereactor

Description

After following the Nginx installation tutorial, we move on to the configuration.

It says the following :

To configure Nginx as a reverse proxy to forward HTTP requests to the ASP.NET Core app, modify /etc/nginx/sites-available/default and recreate the symlink. After creating the /etc/nginx/sites-available/default file, use the following command to create the symlink

However, during the installation process, the sites-available and sites-enabled folders are not created, which makes the configuration process cumbersome for a beginner on Ubuntu (typically, a Windows Server user encountering Linux for the first time).

I think it would be helpful to explain the process of creating these folders, because as a reader of the documentation, you expect them to be created. Personally, not being familiar with Linux and Nginx, I struggled a bit with this part.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-10.0&tabs=linux-ubuntu

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/linux-nginx.md

Document ID

815fe034-c9fc-aee3-a8b5-f2e860b30302

Platform Id

b6e25b01-256b-fd9a-838c-ad7de2de561a

Article author

@tdykstra

Metadata

  • ID: dcdd2c35-bf2b-2673-d150-303a8aaa54d2
  • PlatformId: b6e25b01-256b-fd9a-838c-ad7de2de561a
  • Service: aspnet-core
  • Sub-service: hosting-deployment

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions