Home

Awesome

nginx mod status module

	export CFLAGS="-Wno-error=unused -O2"
	auto/configure --with-compat --add-dynamic-module='/path/to/ngx_mod_status' --add-dynamic-module='/path/to/ngx_mds_epoll' \
		--with-http_stub_status_module --with-threads

	make
- add --with-debug for debugging
	load_module /path/to/ngx_mds_epoll.so;
	load_module /path/to/ngx_mod_status.so;
	events {
		use mds_epoll;
	}

	location = /basic_status {
		ngx_mds;
		ngx_mds_msg_size 500; # >= 500, maximum number of characters on one line in results
		ngx_mds_msg_count 20; # >= 5, maximum number of lines per process in results
	}

	location / {
		# path to .js file 
		root /path/to/js_file;
		index  index.html index.htm;
	}
	events {
		use mds_epoll;
	}
	browser: /basic_status?refresh=1000
	ngx_mod_status.js: var refresh = 500;
- activate experimental lingering scan by using expl variable in browser

	i.e:
	browser turn on expl: /basic_status?expl=1
	browser turn off expl: /basic_status?expl=0
- combine tuning variables

	i.e:
	browser: /basic_status?refresh=1000&expl=0