diff --git a/aspnetcore/host-and-deploy/linux-apache.md b/aspnetcore/host-and-deploy/linux-apache.md index d2930c0b62..0236e24c94 100644 --- a/aspnetcore/host-and-deploy/linux-apache.md +++ b/aspnetcore/host-and-deploy/linux-apache.md @@ -185,6 +185,13 @@ WantedBy=multi-user.target > [!NOTE] > **User** — If the user *apache* isn't used by the configuration, the user must be created first and given proper ownership for files. +> [!NOTE] +> Some values (for example, SQL connection strings) must be escaped for the configuration providers to read the environment variables. Use the following command to generate a properly escaped value for use in the configuration file: +> +> ```console +> systemd-escape "" +> ``` + Save the file and enable the service: ```bash diff --git a/aspnetcore/host-and-deploy/linux-nginx.md b/aspnetcore/host-and-deploy/linux-nginx.md index ccd9054f66..1dd04f5b02 100644 --- a/aspnetcore/host-and-deploy/linux-nginx.md +++ b/aspnetcore/host-and-deploy/linux-nginx.md @@ -180,6 +180,13 @@ WantedBy=multi-user.target **Note:** If the user *www-data* isn't used by the configuration, the user defined here must be created first and given proper ownership for files. **Note:** Linux has a case-sensitive file system. Setting ASPNETCORE_ENVIRONMENT to "Production" results in searching for the configuration file *appsettings.Production.json*, not *appsettings.production.json*. +> [!NOTE] +> Some values (for example, SQL connection strings) must be escaped for the configuration providers to read the environment variables. Use the following command to generate a properly escaped value for use in the configuration file: +> +> ```console +> systemd-escape "" +> ``` + Save the file and enable the service. ```bash