[Apache]

Package Name: Virtual Host package

Global Functions

(void);
called before any config is read

Parameters
pPool to allocate out of
(void);
given an ip address only, give our best guess as to what vhost it is

Parameters
connThe 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
rThe 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
pThe pool to allocate out of
main_serverThe 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
pThe pool to allocate out of
hostnameThe hostname in the VirtualHost statement
sThe 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
rThe current request
hostThe hostname in the headers
portThe port from the headers
Return Value
return 1 if the host:port matches any of the aliases of r->server, return 0 otherwise


© 2000 [Apache Software Foundation]
Generated by ScanDoc 0.14
Last Updated: Fri Apr 14 12:43:20 2006