Preview your site on a Windows Server with IIS 7 Host Headers
Let’s make an example per say that your server IP address is 126.96.36.199 and your domain is mydomain.com. You are working on the site and want to test the site on your server at Hosting.com however you are not ready to update DNS just yet.
For this tutorial it is important to under host headers and how to set them inside of IIS
Modify Host Header Information in IIS7
Start > Run > inetmgr <enter>
Right Click on Web Site to be Adjusted and Choose Edit Bindings
To Edit an Existing Highlight the Record and Click Edit or Click Add To Add a New Record
Select the Proper IP Address, TCP Port, and Host Header Value
- Hit OK
Preview Your Site
If you are only hosting one site and this site is the only site bound to port 80 inside of IIS you can simply access the site using the server IP address at http://188.8.131.52
If you are hosting more than one site on a Windows server you’ll need to configure individual host headers for each site as all site(s) must have a unique binding.
The simplest solution for previewing a site on a Windows server is by adjusting the host header information to use an alternate port. If you adjust the host header of your test site from 80 to 8080 you can then access your site at http://184.108.40.206:8080
Another option that allows you to preview a site before updating the DNS is by creating a sub-domain record to preview the site. You can create a DNS record of test as an A record pointing to the IP address of your server at Hosting.com therefore test.mydomain.com resolves to your server solution.
If you host your DNS with Hosting.com you can simply use our DNS Management utility via the Total Customer Control Panel. The following support article will walk you through this interface.
Then you’ll need to configure your server to listen for requests for test.mydomain.com. Inside of IIS you’ll need to create a host header of test.mydomain.com listening on IP 220.127.116.11 for traffic on port 80.
This will allow the http://test.mydomain.com to resolve to this site inside of IIS.