Accessing .NET Core Settings
- Log in to Plesk
- Go to Websites & Domains
- Select your domain
- Click .NET Core or ASP.NET Core
Application Configuration Options
Application Root
The directory containing your application files. This is where your published .NET 10 app resides.
Example: /httpdocs or /httpdocs/myapp
Document Root
The directory containing static files (CSS, JavaScript, images). Usually the same as Application Root for most apps.
Application Startup File
The main DLL file that starts your application. This is typically named after your project.
Example: MyWebApp.dll
Environment Variables
You can set environment variables for your .NET 10 application through Plesk:
- In the .NET Core settings, look for Environment Variables
- Add variables as needed (e.g.,
ASPNETCORE_ENVIRONMENT=Production) - Click Apply
Common Environment Variables
| Variable | Description | Example Value |
|---|---|---|
| ASPNETCORE_ENVIRONMENT | Application environment | Production, Development, Staging |
| ASPNETCORE_URLS | URLs to listen on | http://localhost:5000 |
| ConnectionStrings__DefaultConnection | Database connection | Your connection string |
Application Pool Settings
For .NET Core applications, Plesk automatically configures the Application Pool to use "No Managed Code". This is correct and required for .NET Core apps.
Viewing Application Logs
To troubleshoot issues:
- In .NET Core settings, look for View Logs or Application Logs
- Check stdout logs for application output
- Review error logs for exceptions
Restarting Your Application
After making configuration changes:
- Go to .NET Core settings in Plesk
- Click Restart or Restart Application
- Wait a few seconds for the app to restart
- Test your application
appsettings.json Configuration
Your application settings should be in appsettings.json and appsettings.Production.json files. Upload these with your application and ensure sensitive data uses environment variables instead of hardcoded values.