The bindings in IIS should use the internal IP. You will either have Port Forwarding Rules or Load Balancing Rules that take the external IP and translate it to the internal IP. Once translated the virtual machines will use the internal IP for everything, including bindings in IIS. When the request leaves the server the request will be translated back to the external IP.
Here is the steps to set up IIS for a working website:
- Create or have an already working network in Go Daddy Cloud Server Console.
- Create a windows VM
- Under Start
- Administrative Tools
- Server Manager
- Roles
- Web Server IIS
- Right click sites
- Add Website
- Site name: mysite.com
- Physical Path: choose path to where you website will live on the filesystem. This example we will create and use: c:\inetpub\wwwroot\mysite.com
- Binding: All Unassigned Port 80
- Hostname mysite.com
- Click Ok
- Right click mysite.com
- Edit Bindings
- Add
- host name: www.mysite.com
- Click ok
- Add your content to: c:\inetpub\wwwroot\mysite.com
- From the Go Daddy Cloud Server console add a port forward to a public IP, please see:
http://support.godaddy.com/help/6197
At this point, if you go to yourpublicIP you will see the IIS7 welcome page. This is because this IP is owned by the Default site in IIS.
If you already have the domain pointed to your public IP, ie mysite.com resolves to yourpublicIPaddress, then visiting mysite.com will work in your web browser.
If you do not have the DNS pointed to the public IP, you can edit the hosts file on your local machine to cause the domain to resolve to that IP ON YOUR MACHINE ONLY:
For paths see:
http://support.godaddy.com/help/3354/viewing-your-website-before-changing-your-nameservers-using-host-files
Add an entry on a single line like: mysite.com 50.62.1.89
Save and close the file.
Close your web browser, reopen, and now go to mysite.com. It should work as expected.
Using the above method you can place as many websites as you want on the 50.62.1.89 IP address.
If you want a website to own everything for that IP Address.
- Start
- Administrative tools
- Server Manager
- Roles
- Web Server IIS
- Right click mysite.com
- Edit Bindings
- Add
- IP Address: 10.1.0.2
- Ok
Now Going to yourpublicIPaddress will show your website.