Virtual Host Package
[Apache Core]


型定義

typedef int(*) ap_vhost_iterate_conn_cb (void *baton, conn_rec *conn, server_rec *s)

関数

void ap_init_vhost_config (apr_pool_t *p)
void ap_fini_vhost_config (apr_pool_t *p, server_rec *main_server)
const char * ap_parse_vhost_addrs (apr_pool_t *p, const char *hostname, server_rec *s)
const char * ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, const char *arg)
int ap_vhost_iterate_given_conn (conn_rec *conn, ap_vhost_iterate_conn_cb func_cb, void *baton)
void ap_update_vhost_given_ip (conn_rec *conn)
void ap_update_vhost_from_headers (request_rec *r)
int ap_matches_request_vhost (request_rec *r, const char *host, apr_port_t port)

型定義

typedef int(*) ap_vhost_iterate_conn_cb(void *baton, conn_rec *conn, server_rec *s)

Callback function for every Name Based Virtual Host.

引数:
baton Opaque user object
conn The current Connection
s The current Server
参照:
ap_vhost_iterate_given_conn
戻り値:
0 on success, any non-zero return will stop the iteration.


関数

void 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

引数:
p The pool to allocate out of
main_server The start of the virtual host list

void ap_init_vhost_config ( apr_pool_t p  ) 

called before any config is read

引数:
p Pool to allocate out of

int ap_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.

引数:
r The current request
host The hostname in the headers
port The port from the headers
戻り値:
return 1 if the host:port matches any of the aliases of r->server, return 0 otherwise

const char* ap_parse_vhost_addrs ( apr_pool_t p,
const char *  hostname,
server_rec s 
)

handle addresses in "<VirtualHost>" statement

引数:
p The pool to allocate out of
hostname The hostname in the VirtualHost statement
s The list of Virtual Hosts.

const char* ap_set_name_virtual_host ( cmd_parms cmd,
void *  dummy,
const char *  arg 
)

handle NameVirtualHost directive

引数:
cmd Command Parameters structure
dummy NOT USED
arg a host of the form "<address>[:port]"

void ap_update_vhost_from_headers ( request_rec r  ) 

ap_update_vhost_given_ip is never enough, and this is always called after the headers have been read. It may change r->server.

引数:
r The current request

void ap_update_vhost_given_ip ( conn_rec conn  ) 

given an ip address only, give our best guess as to what vhost it is

引数:
conn The current connection

int ap_vhost_iterate_given_conn ( conn_rec conn,
ap_vhost_iterate_conn_cb  func_cb,
void *  baton 
)

For every virtual host on this connection, call func_cb.

引数:
conn The current connection
func_cb Function called for every Name Based Virtual Host for this connection.
baton Opaque object passed to func_cb.
戻り値:
The return value from func_cb.
覚え書き:
If func_cb returns non-zero, the function will return at this point, and not continue iterating the virtual hosts.


Apacheに対してSun Jul 19 22:05:28 2009に生成されました。  doxygen 1.4.7