nginx-module-vts
nginx-module-vts copied to clipboard
Need a way to query domain within a filter group
Hi @vozlt
I would like to get the JSON for the filterZone with a custom filter which is a per URI filter for a domain.
Just like I can do this for the domain
https://www.dallascolos.net/status/control?cmd=status&group=server&zone=dallascolos.net
I am unable to get a JSON for the entire domain on a filter zone with this
https://www.dallascolos.net/status/control?cmd=status&group=filter&zone=uris::dallascolos.net@*
for all the zones - URIs here for the custom filter key.
I get a full list for all filter zones like this
https://www.dallascolos.net/status/control?cmd=status&group=filter&zone=*
but, I don't want a full list as I am polling quite a few sites, so I would want just the domain that I am polling.
Can you please help with this?
**Also, I need a way to limit top requests per URI. Not sure how the node limit works - if that is applicable for this
Thanks, Kamalkishor.
up up up +++
i need help @kamalkp @vozlt
vhost_traffic_status_filter_by_set_key $geoip_country_code country::$server_name;
status/control?cmd=status&group=server&zone=country::domain.com
this url not working.. pls help
vhost_traffic_status_filter_by_set_key $geoip_country_code country::$server_name; status/control?cmd=status&group=server&zone=country::domain.com this url not working.. pls help
When accessing the endpoint /status/control
with group=server
specified, the parameter zone
should contain value as the same as the directive server_name
in the server block. I don't know the nginx configuration in your case, I think the zone
should be domain.com
not country::domain.com