Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Setting up IIS for Episerver

When you add the Web Server role in Windows Server, you will be faced with multiple configuration options. This document provides a quick way of configuring Windows Server from the command prompt, adding all settings needed for the EPiServer platform.

Adding the command below will get you a default IIS configuration for running the EPiServer platform.

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-RequestMonitor;IIS-HttpTracing;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

If you will not be using "Windows" and "Basic Authentication", these can be removed by removing "IIS-BasicAuthentication" and "IIS-WindowsAuthentication" from the command above, or click on Remove Role Services in the Server Manager.

If you want to use ASP.NET 4.5 instead of 3.5, replace the following packages in the command line above:

  • "IIS-ASPNET" with "IIS-ASPNET45"
  • "IIS-NetFxExtensibility" with "IIS-NetFxExtensibility45"

For a complete list of IIS packages, refer to MSDN.