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 |
We will now need to import the IIS Module
Import-Module iis* |
Now we create our IIS Website
New-IISSite -Name "TestPixels" -BindingInformation "*:80:" -physicalPath "c:\inetpub\wwwroot\TestPixels" |
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.
[AdSense-A]
0 Comments