nginx builds a virtual host, the internal network can access the external network and cannot be accessed

The virtual host configured on the Alibaba Cloud server can be accessed through curl, but cannot be accessed through the browser URL, and can also be pinged. It means that the internal network cannot be accessed, the external network can be accessed, and the nginx configuration is fine.

In general, the port cannot be connected to the external network, check the security group and firewall.
Small suggestion: ensure that the corresponding port in the open security group is open

 

Reference: http://bbs.qcloud.com/thread-25860-1-1.html

Published 25 original articles · Like2 · Visits 20,000+

Guess you like

Origin blog.csdn.net/longjuanfengzc/article/details/81068647