|
Apache HTTPD
|
Typedefs | |
| typedef int(* | ap_vhost_iterate_conn_cb) (void *baton, conn_rec *conn, server_rec *s) |
Functions | |
| AP_DECLARE (void) ap_init_vhost_config(apr_pool_t *p) | |
| const char * | ap_parse_vhost_addrs (apr_pool_t *p, const char *hostname, server_rec *s) |
| AP_DECLARE_NONSTD (const char *) ap_set_name_virtual_host(cmd_parms *cmd | |
| AP_DECLARE (int) ap_vhost_iterate_given_conn(conn_rec *conn | |
Variables | |
| server_rec * | main_server |
| void * | dummy |
| void const char * | arg |
| ap_vhost_iterate_conn_cb | func_cb |
| ap_vhost_iterate_conn_cb void * | baton |
| int | require_match |
| const char * | host |
| const char apr_port_t | port |
Callback function for every Name Based Virtual Host.
| baton | Opaque user object |
| conn | The current Connection |
| s | The current Server |
Definition at line 73 of file http_vhost.h.
| AP_DECLARE | ( | int | ) |
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. |
Updates r->server with the best name-based virtual host match, within the chain of matching virtual hosts selected by ap_update_vhost_given_ip.
| r | The current request |
| require_match | 1 to return an HTTP error if the requested hostname is not explicitly matched to a VirtualHost. |
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 |
| AP_DECLARE | ( | void | ) |
called before any config is read
| p | Pool to allocate out of |
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 |
given an ip address only, give our best guess as to what vhost it is
| conn | The current connection |
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 |
handle NameVirtualHost directive
| cmd | Command Parameters structure |
| dummy | NOT USED |
| arg | a host of the form "<address>[:port]" |
| const char * ap_parse_vhost_addrs | ( | apr_pool_t * | p, |
| const char * | hostname, | ||
| server_rec * | s | ||
| ) |
Definition at line 63 of file http_vhost.h.
| ap_vhost_iterate_conn_cb void* baton |
Definition at line 87 of file http_vhost.h.
| void* dummy |
Definition at line 62 of file http_vhost.h.
| ap_vhost_iterate_conn_cb func_cb |
Definition at line 86 of file http_vhost.h.
Definition at line 124 of file http_vhost.h.
| server_rec* main_server |
Definition at line 45 of file http_vhost.h.
| const char apr_port_t port |
Definition at line 125 of file http_vhost.h.
| int require_match |
Definition at line 112 of file http_vhost.h.