我想从远程计算机获取nginx的统计信息。我在nginx配置中添加了远程机器的ip地址,但是当我在远程机器上运行curl时,我被禁止了。我如何resovle?我重新加载了配置。试图从远程计算机获取nginx状态
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow xxx.xxx.xxx.xxx;
deny all;
}
curl http://mysite/nginx_status
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.0.13</center>
</body>
</html>
你得到解决?我有同样的问题。这个'ec2metadata --local-ipv4'在我的系统上不可用。 – Luv33preet 2017-03-22 21:00:56