Reading Time: 2 minutes
Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email

In this article, I am going to try and explain how to get a website running on Windows Nano Server.

I am going to use PowerShell for the management of IIS because at the moment you cannot use the IIS Management tools for Nano Server.

If you need to install the IIS Nano Package follow this guide.

For this article, I am just going to just use a very basic Hello World website which I will copy over to my Nano Server and will use PowerShell to configure it.

To copy over the basic website I am going to use the admin share on my Nano Server.

Open up File Explorer on a server or desktop that is a member of the same domain as your Nano Server and navigate to the wwwroot folder.

Delete the two files that are in the directory and Copy your website into a new directory.

Connect to your Nano Server via PowerShell

Enter-PSSession -ComputerName PIXEL-NANO10
view raw Nano_IIS.ps1 hosted with ❤ by GitHub

We will now need to import the IIS Module

Import-Module iis*
view raw Nano_IIS.ps1 hosted with ❤ by GitHub

Now we create our IIS Website

New-IISSite -Name "TestPixels" -BindingInformation "*:80:" -physicalPath "c:\inetpub\wwwroot\TestPixels"
view raw Nano_IIS.ps1 hosted with ❤ by GitHub

We can now use a web browser on a machine internally to view our site.

And now you have a basic website running on Windows Nano Server.

You can actually do a lot with this and I can see it being used by a lot of web hosts soon.

Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email

Pixel Robots.

I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

I agree