(void);
- called before any config is read
- Parameters
p Pool to allocate out of
(void);
- given an ip address only, give our best guess as to what vhost it is
- Parameters
conn The current connection
(void);
- ap_update_vhost_given_ip is never enough, and this is always called after the headers have been read. It may change r->server.
- Parameters
r The current request
ap_fini_vhost_config(apr_pool_t*p, server_rec *main_server);
- called after the config has been read to compile the tables needed to do the run-time vhost lookups
- Parameters
p The pool to allocate out of main_server The start of the virtual host list
const char *ap_parse_vhost_addrs(apr_pool_t *p, const char *hostname, server_rec *s);
- handle addresses in
statement
- Parameters
p The pool to allocate out of hostname The hostname in the VirtualHost statement s The list of Virtual Hosts.
intap_matches_request_vhost(request_rec *r, const char *host, apr_port_t port);
- Match the host in the header with the hostname of the server for this request.
- Parameters
r The current request host The hostname in the headers port The port from the headers - Return Value
- return 1 if the host:port matches any of the aliases of r->server, return 0 otherwise