简体   繁体   English

无法访问Azure云上Linux VM上托管的应用程序

[英]Not able to access application hosted on Linux VM on Azure cloud

I have created a CentOS 7.1 VM using Resource Manager deployment model. 我已经使用资源管理器部署模型创建了一个CentOS 7.1 VM。

I am not able to access the application using a browser on a machine connected to internet. 我无法使用连接到互联网的计算机上的浏览器访问该应用程序。

However I am able to access the application on same machine and other VM on same virtual network using private IP address. 但是,我可以使用专用IP地址访问同一台计算机上的应用程序和同一虚拟网络上的其他VM。

I configured Network Security Group and allowed port 80 and 443 in Inbound Rules. 我配置了网络安全组,并在入站规则中允许端口80和443。

Well, it turned out that I needed to open ports under "Inbound Security Rules" and needed to open all in "Source Port Range". 好吧,事实证明,我需要在“入站安全规则”下打开端口,并需要在“源端口范围”中打开所有端口。 For doing so, i needed to put * there and in Destination port for https - 443 etc. 为此,我需要将*放在目的地端口中,并放置https-443等。

This * thing was the catch which i was missing in all the Inbound security rules for allowing the ports. *这是我在所有允许端口使用的入站安全规则中缺少的陷阱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM