Overview
Configure your .NET 8 application settings through Plesk's control panel interface for optimal performance and functionality.
Accessing .NET Core Settings
- Log in to Plesk control panel
- Go to Websites & Domains
- Select your domain
- Click Hosting Settings
Essential Configuration Options
.NET Core Version
Select 8.0.x from the dropdown. This ensures your app runs on the .NET 8 runtime.
Application Startup File
Enter your main DLL name (e.g., MyApp.dll). This is the entry point for your application.
Application Root
Set to / for root deployment or specify a subfolder like /app.
Environment Variables
To set environment variables for your .NET 8 app:
- Create or edit web.config in your httpdocs folder
- Add environment variables in the aspNetCore section:
<aspNetCore processPath="dotnet" arguments=".MyApp.dll">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
<environmentVariable name="MyCustomSetting" value="MyValue" />
</environmentVariables>
</aspNetCore>
appsettings.json for Production
Create appsettings.Production.json for production-specific settings:
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=mydb;User Id=myuser;Password=mypass;TrustServerCertificate=True;"
}
}
Application Pool Settings
Access via Websites & Domains → Dedicated IIS Application Pool:
- Idle Timeout: Adjust to prevent app recycling during inactivity
- Private Memory Limit: Increase if your app requires more memory
- Regular Time Interval: Set recycling schedule
Important Notes
- Always restart the application pool after configuration changes
- Use the Restart App button in Plesk .NET Core settings
- Check stdout logs if application fails to start after changes