Skip to content

IIS

1 Install Web Server Role IIS (if not exist)

You can find turn windows features > Web server role. or execute PowerShell script as administrator

Required Web Server features

  • HTTP Redirect ( common HTTP functions)
  • Basic authentication
  • Internet Information Service (IIS) Manager

PowerShell script:

PowerShell
Set-ExecutionPolicy Bypass -Scope Process

# To list all Windows Features: dism /online /Get-Features
# Get-WindowsOptionalFeature -Online 
# LIST All IIS FEATURES: 
# Get-WindowsOptionalFeature -Online | where FeatureName -like 'IIS-*'

Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect

Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpCompressionStatic

Enable-WindowsOptionalFeature -Online -FeatureName IIS-Security
Enable-WindowsOptionalFeature -Online -FeatureName IIS-BasicAuthentication
Enable-WindowsOptionalFeature -Online -FeatureName IIS-StaticContent

Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementConsole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerManagementTools

https://weblog.west-wind.com/posts/2017/may/25/automating-iis-feature-installation-with-powershell

2. SETUP HTTPS

The best format is pfx it can be imported directly in iis or you can use FREE SSL for HTTPS https://www.win-acme.com/

3. (OPTIONAL) SQL SERVER BACKUPS

backup

4. Troubleshoting

  1. static compression and dynamic compression must be disabled
  2. Check net core version, try manually launch
Bash
1
2
3
4
5
#powinna byc 2.2.3
dotnet --info  

#uruchomic moze powic sie wtedy informacja co jest nei tak
dotnet app.dll