Welcome! Log In Create A New Profile

Advanced

stub_status on gentoo

Posted by zuckbin 
stub_status on gentoo
September 21, 2011 05:34AM
Hi,

I try to add this to my server conf


server {
listen 80;
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}

But i always got this message:

* Checking nginx' configuration ...
nginx: [emerg] unknown directive "stub_status" in /etc/nginx/nginx.conf:180
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx: [emerg] unknown directive "stub_status" in /etc/nginx/nginx.conf:180
nginx: configuration file /etc/nginx/nginx.conf test failed
* failed, please correct errors above


How to enable stub_staus on gentoo, what is the directive to add to package.use ? or to set in the make.conf ?

Thanks for your help
Bye
Re: stub_status on gentoo
September 21, 2011 05:56AM
Hi,

Add "stub_status" to NGINX_MODULES_HTTP in /etc/make.conf:

NGINX_MODULES_HTTP="access autoindex browser charset \
empty_gif fastcgi flv geoip gzip map proxy rewrite stub_status \
upstream_ip_hash upload_progress"

Andrejs
Re: stub_status on gentoo
September 21, 2011 06:10AM
Thanks, it works !
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
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