nginx with stub_status.. need help with nginx.conf
Posted
by Amar
on Server Fault
See other posts from Server Fault
or by Amar
Published on 2010-04-22T18:21:34Z
Indexed on
2010/04/22
18:23 UTC
Read the original article
Hit count: 652
Hello
I am trying to setup nginx with stub status so I can monitor nginx requests etc.. with serverdensity.com. I needed to put something like this in nginx.conf
server {
listen 82.113.147.xxx;
location /nginx_status {
stub_status on;
access_log off;
allow 82.113.147.xxx;
deny all;
}
}
And with this monitoring acctualy works. However It seems I lost "include" part in my nginx.conf and now none of vhosts in sites-enabled work. Here is a bit more of my nginx.conf
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_tokens off;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 82.113.147.226;
location /nginx_status {
stub_status on;
access_log off;
allow 82.113.147.226;
deny all;
}
}
}
Hope someone can help me with this , as I belive its minor issue, its just that "I dont see it"
ty
© Server Fault or respective owner