First install IIS (Internet Information Services), and make sure to enable the "Application Initialization" feature (Web Server Role (IIS) / Application Development / Application Initialization).
Download and install the latest "ASP.NET Core Runtime 10.x - Hosting Bundle" from https://dotnet.microsoft.com/en-us/download/dotnet/10.0
Make sure to select the "Hosting Bundle" file.
Run the "dotnet-hosting-10.0.xxx-win.exe" file.
Important The "ASP.NET Core Runtime 10.x - Hosting Bundle" must only be installed AFTER IIS is installed (see step 1).
Download the version of OwnCDN meant for running under IIS (owncdn-x-x-x-iis.zip) from https://owncdn.com/download
Extract the content of the downloaded zip file to a folder on the server computer - for example
c:\owncdn(right-click the .zip file in File Explorer, and select "Extract All...", or use your preferred zip file program to do this).Open the "Internet Information Services (IIS) Manager" from the Windows Start menu.
Note To simplify things, we removed the "Default" IIS website. But you can easily install OwnCDN alongside that and/or any other existing IIS websites. You just need to configure each website to use different host names or port numbers.
Expand the tree in the left pane, right-click "Sites", and select "Add Website...":

In the "Add Website" dialog, enter "owncdn" as the Site name (note: The application name will automatically be the same - this is fine).
Specify the folder where you extracted the OwnCDN files (see step 4) under "Physical path".
If needed, you can also configure the IP address, port, and/or host name here so that OwnCDN won't conflict with any existing website.
Click the "OK" button:
Back in the IIS Manager window, in the left pane, click "Application Pools", then right-click the "owncdn" application pool, and select "Advanced settings":

Under "(General)", change ".NET CLR Version" to "No Managed Code", and "Start Mode" to "AlwaysRunning".
Under "Process Model", change "Idle Time-out (minutes)" to "0" (to prevent shutting down when idle).
Scroll down, and under "Recycling", change "Disable Overlapped Recycle" to "True" (to prevent IIS from starting multiple instances of OwnCDN with the same data folder - which would fail), and change "Regular Time Interval (minutes)" to "0" (to prevent periodic recycling), and click the "OK" button:

Back in the IIS Manager window, in the left pane, right-click the "owncdn" website, select "Manage Website", and then "Advanced Settings...":

Change the "Preload Enabled" setting to "True" and click the "OK" button:

At this point you may need to restart IIS - aka the "W3SVC" / "World Wide Web Publishing Service" service.
You can do this via the Windows Task Manager / Services tab, or at a command prompt by typingNET STOP W3SVC(ENTER), followed byNET START W3SVC(ENTER).Finally, you should be able to open the OwnCDN site in your browser using
http://127.0.0.1or whatever IP address / port / host name you configured the site to be available at.
(The first time you open this, you will be presented with the OwnCDN EULA)