Apache2
http_vhost.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef APACHE_HTTP_VHOST_H
27 #define APACHE_HTTP_VHOST_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
38 
46 
53 AP_DECLARE(const char *) ap_parse_vhost_addrs(apr_pool_t *p, const char *hostname, server_rec *s);
54 
62  void *dummy,
63  const char *arg);
64 
73 typedef int(*ap_vhost_iterate_conn_cb)(void* baton, conn_rec* conn, server_rec* s);
74 
87  void* baton);
88 
94 
101 
113 
114 
125  apr_port_t port);
126 
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* !APACHE_HTTP_VHOST_H */
int ap_matches_request_vhost(request_rec *r, const char *host, apr_port_t port)
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)
int ap_vhost_iterate_given_conn(conn_rec *conn, ap_vhost_iterate_conn_cb func_cb, void *baton)
int ap_update_vhost_from_headers_ex(request_rec *r, int require_match)
void ap_fini_vhost_config(apr_pool_t *p, server_rec *main_server)
void ap_update_vhost_given_ip(conn_rec *conn)
void ap_update_vhost_from_headers(request_rec *r)
int(* ap_vhost_iterate_conn_cb)(void *baton, conn_rec *conn, server_rec *s)
Definition: http_vhost.h:73
request_rec * r
Definition: mod_dav.h:518
const char * s
Definition: mod_dav.h:1327
int
Definition: mod_proxy.h:674
apr_uint16_t apr_port_t
Definition: apr_network_io.h:230
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define AP_DECLARE(x)
Definition: macros.h:1
#define AP_DECLARE_NONSTD(x)
Definition: macros.h:2
Definition: http_config.h:288
Structure to store things which are per connection.
Definition: httpd.h:1193
A structure that represents the current request.
Definition: httpd.h:856
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p