Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 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 
111 AP_DECLARE(int) ap_matches_request_vhost(request_rec *r, const char *host,
112  apr_port_t port);
113 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif /* !APACHE_HTTP_VHOST_H */
119 
int ap_matches_request_vhost(request_rec *r, const char *host, apr_port_t port)
#define AP_DECLARE(x)
Definition: macros.h:1
#define AP_DECLARE_NONSTD(x)
Definition: macros.h:2
Structure to store things which are per connection.
Definition: httpd.h:1110
void ap_init_vhost_config(apr_pool_t *p)
Definition: http_config.h:295
A structure to store information for each virtual server.
Definition: httpd.h:1302
void ap_fini_vhost_config(apr_pool_t *p, server_rec *main_server)
void ap_update_vhost_from_headers(request_rec *r)
apr_pool_t * p
A structure that represents the current request.
Definition: httpd.h:805
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)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
const char * ap_set_name_virtual_host(cmd_parms *cmd, void *dummy, const char *arg)
request_rec * r
Definition: mod_dav.h:519
apr_uint16_t apr_port_t
Definition: apr_network_io.h:257
const char * ap_parse_vhost_addrs(apr_pool_t *p, const char *hostname, server_rec *s)
int(* ap_vhost_iterate_conn_cb)(void *baton, conn_rec *conn, server_rec *s)
Definition: http_vhost.h:73