我在 centos(在 Microsoft Azure 上)上安装了 nginx。我可以通过 curl 公共(public) IP 但无法从公共(public)网络 curl 来在我安装 nginx(MS AZURE 上的 centos)的 localbox 上获得 nginix 的默认页面。你们能帮忙解决这个问题吗?
谢谢。
最佳答案
尝试编辑/etc/nginx/sites-available/proxy.conf
,开头应该有listen ...
,所以尽量放在那里
server {
listen your-public-ip:80
#rest of the file
}
并通过systemctl restart nginx
重启服务。
关于linux - 无法使用公共(public) IP 访问 nginx 默认页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35805050/