~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/base/httpd/httpd-1.3/http_vhost.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
17
 
{ called before any config is read }
18
 
procedure ap_init_vhost_config(p: PPool);
19
 
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
20
 
 
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;
24
 
 
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;
28
 
 
29
 
{ handle NameVirtualHost directive }
30
 
//function ap_set_name_virtual_host(cmd: Pcmd_parms; dummy: Pointer; arg: PChar): PChar;
31
 
// cdecl; external LibHTTPD;
32
 
 
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;
36
 
 
37
 
{ The above is never enough, and this is always called after the headers
38
 
 * have been read.  It may change r->server.
39
 
 }
40
 
procedure ap_update_vhost_from_headers(r: Prequest_rec);
41
 
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
42
 
 
43
 
{ return 1 if the host:port matches any of the aliases of r->server
44
 
 * return 0 otherwise
45
 
 }
46
 
function ap_matches_request_vhost(r: Prequest_rec; const host: PChar;
47
 
 port: cuint): cint;
48
 
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} external LibHTTPD;
49