Internet Information Services (IIS) is a flexible, secure, and manageable web server developed by Microsoft, designed to host websites, web applications, and services on Windows Server. IIS is known for its tight integration with the Windows operating system, providing robust support for ASP.NET and other web technologies. Here is a step by step guide on how to configure IIS for web hosting on a Windows server from Kamatera.
Click on the Start menu and select Server Manager.
Click Next
Ensure your server is selected from the server pool.
Click Next
Click Next.
Web Server Role (IIS)
On the Role Services page, default settings are typically sufficient. Confirm with developers or DB administrators if additional services are needed.
Click Next
Click Install to begin the installation process.
While IIS is installing, go to Local Server in Server Manager.
Disable Internet Explorer Enhanced Security Configuration for both administrators and users to avoid annoying pop-ups during testing. This should only be done in a test environment.
Once the installation is complete, return to the Dashboard and verify that IIS is listed and running.
Open Internet Explorer.
Choose Use recommended settings and click OK.
Type localhost in the address bar.
5. Click on Accept and download.
If you see the IIS welcome page, the installation is successful.
Note: Restart the system for errors.
To install and configure DNS, we need to install a static IP address.
A new screen opens.
3. Set the following IP address – 193. 252. 116. 52
4. Click OK to open a new screen.
Select Close.
7. Under the Server Manager, select Manage.
Select the server from the server pool.
A new screen will open.
Ensure Include Management Tools checkbox is selected, then click Add Features.
Skip adding any additional features and proceed by clicking Next.
On this page, you can read a summary of the DNS.
Note: Be sure to check the box labeled “Restart the destination server or features automatically if required.”
After checking the box, a pop-up box will appear.
The installation process will commence. Once it’s completed, click on “Close”.
Expand your server’s Forward Lookup Zones and select your domain.
Right-click in the zone and select New Host (A or AAAA).
Delete the existing iisstart.htm and welcome.png files.
Open Notepad and create a basic HTML file. You can use this script:
<!DOCTYPE html> <html> <head> <title>My First Web Page</title> </head> <body> <h1>Welcome to My First Web Page</h1> <p>Thanks for checking it out.</p> </body> </html> |
Save this file as index.html in the C:\<server name>\root folder.
In IIS Manager, double-click Default Document.
Ensure index.html is in the list. If not, click Add… and type index.html.
Go back to Internet Explorer, type localhost, and press Enter. Your new HTML page should appear.
Ensure DNS changes have propagated if using a domain.
You now have a basic IIS web server set up and running on your Windows computer. We have provided the steps to cover installation, basic configuration, and testing to ensure your web server is operational.
Have additional questions? Search below: