For those of you who want to create a web server on Windows – probably because you are learning to create your own web or for other purposes, you can do it very easily. In this article WinPoin will provide several ways to create a web server on Windows PC, which you can practice in various versions of Windows such as Windows 7, Windows 8.1, or Windows 10.
Method 1: Create a Web Server Using IIS
How to create a web server on Windows first is to utilize Microsoft IIS (Internet Information Services). This IIS is already in Windows, but is off by default. To activate it you just type in the search bar Turn Windows Features On or Off, then click to open.
Check Internet Information Services and click OK, then wait until the process is complete.
After that type IIS in the search field, and open Internet Information Services Manager
Click the dropdown in the Connections panel on the left> Sites, well there you will find a list of websites in your Windows. If you have just activated, then there should be only Default Web Site there. You can add a new website by clicking Add Website from the panel on the right.
After that just enter the details of the website you want on the Site name.
In the Physical path section, you can browse and create a root folder where your various website files are stored. By default, you can save it by creating a sub folder of your website in C:\ inetpub\wwwroot
Actually if you have a static IP for the website, you can fill in the IP in the field provided. But because here we will create a local web server, then you do not need to do it. Leave the contents of the IP column remains the default.
In the Hostname, fill in the hostname website you want to make, let’s say www.blogspot.space or simply blogspot.space.
Now you just open the browser and access localhost / namafolderwebsite, and your website will be accessible on the local Windows web server.
Method 2: Create a Web Server Using XAMPP
How to create a second web server on Windows is the most popular and widely used, by using XAMPP. With XAMPP you can create Apache web server on Windows very easily, and already include with MariaDB, PHP, and Perl.
The way you live download only XAMPP here. Then install XAMPP in Windows. Avoid installing XAMPP on drive C because there are some functions that are interrupted due to active User Account Control (UAC). For easy you can just install on drive D or drive other than C.
After the installation process is complete, you just start the service module you want to enable.
Now you just put the root folder of your website in the installation folder xampp\htdocs\
If so, to access it you just open the browser, and type localhost/ namafolderwebsite/. The website will automatically open on the local server.
Other Alternative Ways
In addition to using the built-in Windows IIS and above XAMPP, you can also use WampServer (Windows, Apache, MySQL, PHP) – or you can use Winginx if you want Nginx web server. I myself prefer to use Winginx instead of XAMPP or WampServer, as I am more familiar with Nginx web server than Apache.
How to create a web server on Windows with WampServer and Winginx not much different from using XAMPP, you just live install and activate its service only.
Can I Access Online?
Web server that you created by the above is a local web server that you can access on the PC itself via localhost. But actually you can make the web server in Windows is really online and can be accessed public by setting up static IP and then do port forwarding and firewall configuration. But my does not recommend you to make your PC at home as a production server, because in addition to inefficient (much more cost-effective and cheaper to use web hosting services for production servers that must continue to light up 24 hours non-stop), security issues are also a major consideration.
But if you are interested to know how to create a web server in Windows that can be accessed online by the public, my will write it also in the next tutorial.