How to create website on IIS in Windows Server 2012 R2
How to create website on IIS in Windows Server 2012 R2
IIS is Internet Information Services which is used to publish and host a website like Twitter.com. Website is a collection of relative webpages what include the home page. Web pages are written in HTML (Hypertext Markup Language) language. IIS is one of the most popular service of Microsoft. In this article, we’ll learn the steps to create website on IIS i.e. Windows Server 2012 web hosting.
Now a days everyone wants to host their Website either for business or personal. Every white collar person wants to create a site giving details about them. Moreover some people are also using it as a resume because it’s more impressive and you can also write other details about yourself, projects on which you have worked, your achievements, references, etc.
There are multiple ways to host the Website either we can use a VPS server which is a dedicated Virtual server and host site on that. Besides that we can also opt for shared hosting on Linux or windows server 2012 web hosting, if you don’t need many resources.
You can either build your own server if you have knowledge, skill and most importantly good budget to maintain it, else there are many good hosting providers out there who would help you with good hosting. You can use Bluehost discount Coupons if you are planning to host your site on cloud and not on-premises. These discount Coupons would help you get huge discount of upto 65%.
Steps to Host/ Create website on IIS on Windows Server 2012 R2
1. When you install IIS on Windows server 2012 R2, it create a default site. To check the default site of IIS, click on Start then select Internet Explorer and type http://server-name (Server-name is the name of Computer on which you have installed IIS) then hit Enter and you will get the default page.
2. Web designers are responsible to create website but for this practical, we’ll create a simple webpage. To create a webpage open Notepad and type content and then save it as Dot HTML (.html) file. We would not learn HTML in this practical, as it is out of scope for this post. Once the file is created, we’ll save the file in C:\IIS folder. By default all the IIS contents are saved in c:\inetpub\wwwroot.
3. To create website, open IIS window, click on start then select down arrow and select Internet Information Service icon.
4. On the IIS console, we have to stop the default site by clicking on stop. As the default site is running on port 80 and we need to create website which would also run on port number 80.
5. To create website on IIS right click on sites and then select Add website.
6. To create website, Define the name, physical path and bindings like Type of sites(http or https), IP address and Port of the website.
In “IP Address” option, you can even select an IP address on which you want this site to run.
Steps to change IP Addres using Command Prompt
In “Port” option define the port number for this site, you can even define the custom port e.g. 81 or 8080 or 8081, etc. In “Host Name” we can even define the domain name, we’ll talk about this in future article.
Click on Ok to continue.
7. We’ll get a warning message that port:80 is assigned to another site and we’ll not be able to start our website that’s why we have to confirm to add this duplicate binding by clicking on YES. This would not break anything as we already disabled “Default Website”.
8. On IIS Manager window we can see our website is created.
9. Open Internet Explorer to browse our site which we have created.
10. Type server name (http://servername) in address bar and hit enter. This would show the webpage that we created. Similarly now you can access this from any other server.
Hope you understood the steps to create website on IIS and create Windows Server 2012 web hosting in your premises. Don’t forget to leave your comments, suggestions in the below mentioned comment section. We’ll also request you to like, share and tweet this page with your friends and help them learn more and do share more about the web servers you are using in your Organization.
thank you so much
Is there a way to backup and move the website to Cloud without any data loss
Wow that is brilliant, it helped me in creating Website on IIS in Windows Server 2012 R2.
Hello there! Would you mind if I share your blog
with my twitter group? There’s a lot of people
that I think would really enjoy your content.
Please let me know. Many thanks
Thanks for sharing great article on creating website on IIS. Please suggest shall I follow the same steps i. e. IIS to create and host public website. What is your recommendation to create a public website if I am not a coder and don’t know a bit of coding.
Thanks for the article.
I am running a website on Windows Server 2003, can I move the same Website on Windows Server 2012 R2 without any downtime ?
Thanks for the detailed information to setup IIS on Windows Server 2012 and promoting it as a Web Server. Really worth reading and implementing.
How to host a website Windows Server 2016 ? Do we need to follow different steps than configure IIS on Windows Server 2012?