Open huangyonghome opened 1 year ago
@huangyonghome Hi, thanks reporting. Umm….Do you have any other server which is provided by nginx?
@u5surf
Hi.Thanks for your reply..I tried two nginx servers.Both of them have the save problems
@huangyonghome
Does your configuration’s server_name
have some wildcard expression such as server_name ~^(.*)\.example\.com$ ;
?
Anyway, we cannot reproduce your behavior anymore if you cannot give the minimal reproducible nginx.conf without you sensitive business data.
@u5surf Yep.We have some wildcard server_name :
./conf_nwd/abc.conf: server_name .abc.com; ./conf_nwd/nwd.com.conf: server_name .nwd.net; ./conf_nwd/xyz.com.conf: server_name *.xyz.com;
@huangyonghome Can’t we consider that the request had come actually hostname which is consisted of the string which can be matched the wild card
In fact, 0-9.abc.com
can match wildcard host name which you present.
Thus, we suggest that it should stop using the wildcard server name.
nginx conf:
http { vhost_traffic_status_filter_by_host on; vhost_traffic_status_zone shared:vhost_traffic_status:32m; }
server conf
start nginx-vts-exporter
nginx-vts-exporter -nginx.scrape_timeout 10 -nginx.scrape_uri http://127.0.0.1:10011/ngin_status/format/json
below is the monitor metrics
Thanks you in advance.It will be appricated if anyone could help me