Welcome! Log In Create A New Profile

Advanced

nginx with stub_status.. need help with nginx.conf

Posted by amarc 
nginx with stub_status.. need help with nginx.conf
April 22, 2010 03:33PM
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

[code]
server {
listen 82.113.147.xxx;
location /nginx_status {
stub_status on;
access_log off;
allow 82.113.147.xxx;
deny all;
}

}
[/code]


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

[code]
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;
}

}



}
[/code]


Hope someone can help me with this , as I belive its minor issue, its just that "I dont see it"

ty
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready