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
8
* http://www.apache.org/licenses/LICENSE-2.0
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.
17
{ called before any config is read }
18
procedure ap_init_vhost_config(p: PPool);
19
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
21
{ called after the config has been read }
22
procedure ap_fini_vhost_config(p: PPool; main_server: Pserver_rec);
23
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
25
{ handle addresses in <VirtualHost> statement }
26
function ap_parse_vhost_addrs(p: PPool; const hostname: PChar; s: Pserver_rec): PChar;
27
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
29
{ handle NameVirtualHost directive }
30
//function ap_set_name_virtual_host(cmd: Pcmd_parms; dummy: Pointer; arg: PChar): PChar;
31
// cdecl; external LibHTTPD;
33
{ given an ip address only, give our best guess as to what vhost it is }
34
procedure ap_update_vhost_given_ip(conn: Pconn_rec);
35
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
37
{ The above is never enough, and this is always called after the headers
38
* have been read. It may change r->server.
40
procedure ap_update_vhost_from_headers(r: Prequest_rec);
41
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
43
{ return 1 if the host:port matches any of the aliases of r->server
46
function ap_matches_request_vhost(r: Prequest_rec; const host: PChar;
48
{$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;