问题
I am playing around with setting up a Web App in an Azure Resource Group, and I'm using a personal domain of mine (that I'm not currently using for anything) to learn and play: woodswild.com.
I've got the Web App all set up at http://woodswild.azurewebsites.net. There's nothing there right now except Azure's "Coming Soon" screen, and that's fine. I've also logged into GoDaddy and added this A Host Record:
Host Points To
---- -------------
@ 23.99.206.151
And a few CName Records:
Host Points To:
------------ ------------------------------------------
www woodswild.azurewebsites.net
awverify.www awverify.woodswild.azurewebsites.net
awverify awverify.woodswild.azurewebsites.net
And then in the Azure Portal UI, I've added the following in the 'Bring External Domains' section of the Web App:
The result is that I can now browse to http://www.woodswild.com, and it resolves! I get the Azure "Coming Soon" message.
So now my question is: Is it possible to also browse to http://23.99.206.151 and have that also resolve to woodswild.azurewebsites.net? If so, how?
Thanks!
回答1:
This is a much easier one -
No.
Because all that IP address is is the load balancer out in front of Azure Web App, it could be serving a thousand different websites. Azure filters which request goes where by inspecting the headers. i.e. what was typed in the browser.
来源:https://stackoverflow.com/questions/35183153/point-ip-address-to-azure-resource-group-web-app