Internet Information Services (IIS) is a web server for hosting websites, applications, and APIs on Windows Server. This guide will walk you through installing and configuring IIS on a Windows VPS.
π Prerequisites
-
A Windows Server VPS (2016, 2019, or 2022) from Voltichost
-
Administrator access
-
A static IP or domain name (optional but recommended)
1οΈβ£ Install IIS on Windows Server
-
Open Server Manager (
Win + S
, type "Server Manager", press Enter). -
Click Manage β Add Roles and Features.
-
Select Role-based or feature-based installation β Click Next.
-
Select your server β Click Next.
-
Scroll down and check Web Server (IIS) β Click Next.
-
Click Next again, then click Install.
β IIS is now installed!
2οΈβ£ Verify IIS is Running
-
Open Run (
Win + R
), type:inetmgr
Press Enter to open the IIS Manager.
-
Expand your server name on the left panel.
-
Open a web browser and enter:
http://localhost
If IIS is running, you will see the IIS default welcome page.
β Your IIS server is now running.
3οΈβ£ Configure a Website in IIS
-
Open IIS Manager (
inetmgr
). -
In the left panel, right-click Sites β Add Website.
-
Enter:
-
Site Name: ExampleWebsite
-
Physical Path: Select a folder where your website files are stored (e.g.,
C:\inetpub\wwwroot\example
) -
Binding Type: HTTP
-
Port:
80
-
IP Address: Select your VPS IP
-
-
Click OK.
β Your website is now hosted in IIS.
4οΈβ£ Open Port 80 in Windows Firewall
-
Open Windows Defender Firewall (
Win + R
, typewf.msc
, press Enter). -
Click Advanced Settings β Inbound Rules β New Rule.
-
Select Port, then click Next.
-
Choose TCP, enter
80
, then click Next. -
Select Allow the connection, then click Next.
-
Apply to Domain, Private, and Public networks.
-
Name it IIS HTTP Port 80 and click Finish.
β Your website is now accessible from the internet.
5οΈβ£ (Optional) Enable HTTPS with an SSL Certificate
To enable HTTPS, you need an SSL certificate. You can use a free Letβs Encrypt SSL or a paid certificate.
-
Open IIS Manager.
-
Click Server Certificates (under the Features panel).
-
Click Create Self-Signed Certificate (or import an SSL certificate).
-
Go to Sites β Your Website β Bindings.
-
Click Add, select HTTPS, choose your certificate, and click OK.
β Your site is now secured with HTTPS.
6οΈβ£ Restart IIS and Test
To restart IIS, open Command Prompt (Admin) and run:
iisreset
Now, visit your VPS IP or domain name in a browser:
http://your-vps-ip
If using HTTPS:
https://your-domain.com
β Your IIS web server is fully set up!
π Conclusion
You've successfully installed and configured IIS on your Windows VPS! You can now host websites, applications, and APIs with ease. π
For more assistance, contact VolticHost Support.