Name

ap_matches_request_vhost — does a host match a request’s virtual host?

Synopsis

int ap_matches_request_vhost(request_rec *r, const char *host, unsigned port)

Returns 1 if host:port matches the virtual host that is handling r; 0 otherwise.