如何在Azure中使用虚拟机来托管网站? [英] How to host Website using Virtual Machine in Azure?

查看:276
本文介绍了如何在Azure中使用虚拟机来托管网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个蔚蓝的虚拟机Windows Server 2012中,我已经买了godaddy.com。我的网站文件夹中的域名是在XAMPP的htdocs文件夹。我也创建了虚拟机的虚拟主机和我已经给它的IP地址到域名。我无法弄清楚下一步该怎么做。请帮我出去!

I have created a virtual machine windows server 2012 on azure and I have bought a domain name from godaddy.com .My website folder is in htdocs folder of xampp. I have also created the virtual host in Virtual machine and I have given the IP address of it to the domain name. I am unable to figure out what to do next . Please help me out !

推荐答案

如果你的Web服务器已启动并运行在你的虚拟机,你只需要现在就打开外部端点。

If you web server is up and running in your VM you just need to open the external endpoints now.

从Azure的门户网站>>浏览到您的虚拟机>> >>端点添加>>键入名称,端口和选择协议

From Azure portal >> Navigate to your VM >> Endpoints >> Add >> Type name, port and select protocol

有关你自定义域,你必须去GoDaddy的DNS管理器,并添加新的主机(A)项指向你的虚拟机的公网IP​​。

For you custom domain, you have to go to godaddy dns manager and add a new host (A) entry pointing to your VM public ip.

另外,还要确保Windows防火墙没有阻止连接。

Also make sure windows firewall is not blocking connections.

这篇关于如何在Azure中使用虚拟机来托管网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆