Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

http_vhost.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Virtual

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)
const char * ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, const char *arg)
 AP_DECLARE (int) ap_matches_request_vhost(request_rec *r

Variables

server_recmain_server
const char * host
const char apr_port_t port


Function Documentation

AP_DECLARE int   ) 
 

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
Returns:
return 1 if the host:port matches any of the aliases of r->server, return 0 otherwise int ap_matches_request_vhost(request_rec *r, const char *host, apr_port_t port)

Definition at line 445 of file http_protocol.c.

AP_DECLARE void   ) 
 

Generic accessors for other modules to set at their own module-specific data

Parameters:
conf_vector The vector in which the modules configuration is stored. usually r->per_dir_config or s->module_config
m The module to set the data for.
val The module-specific data to set void ap_set_module_config(ap_conf_vector_t *cv, const module *m, void *val)

Definition at line 1271 of file http_protocol.c.

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

handle addresses in <virtualhost> statement

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

Definition at line 218 of file vhost.c.

References server_rec::addrs, err, get_addresses(), server_addr_rec::host_port, NULL, and server_rec::port.

Referenced by AP_CORE_DECLARE().

Here is the call graph for this function:

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

Definition at line 246 of file vhost.c.

References get_addresses().

Here is the call graph for this function:


Variable Documentation

const char* host
 

Definition at line 78 of file http_vhost.h.

Referenced by AP_DECLARE(), ap_proxy_canon_netloc(), ap_proxy_ftp_canon(), ap_proxy_http_canon(), ap_set_listener(), check_hostalias(), fix_hostname(), get_addresses(), proxy_get_host_of_request(), proxy_match_domainname(), proxy_match_ipaddr(), reduce_uri(), and ssl_util_vhostid().

server_rec* main_server
 

Definition at line 41 of file http_vhost.h.

Referenced by cgid_server(), and virtualhost_section().