Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:14108 php.pecl.dev:1733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8814 invoked by uid 1010); 17 Dec 2004 07:16:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8737 invoked from network); 17 Dec 2004 07:16:32 -0000 Received: from unknown (HELO www.mrblackrose.de) (62.75.168.252) by pb1.pair.com with SMTP; 17 Dec 2004 07:16:32 -0000 Received: from [192.168.1.2] (pD95F0AD0.dip.t-dialin.net [217.95.10.208]) (authenticated bits=0) by www.mrblackrose.de (8.12.10/8.12.10) with ESMTP id iBH7EvNr030824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Dec 2004 08:14:59 +0100 Message-ID: <41C28780.5060807@mrblackrose.de> Date: Fri, 17 Dec 2004 08:15:12 +0100 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: internals@lists.php.net, php@phpbar.de, apache-modules@covalent.net, users@httpd.apache.org, pecl-dev@lists.php.net X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-MrBlackRose-MailScanner-Information: Please contact the ISP for more information X-MrBlackRose-MailScanner: Found to be clean X-MailScanner-From: goetz@mrblackrose.de Subject: get ALL virtual hosts From: goetz@mrblackrose.de (=?ISO-8859-15?Q?G=F6tz_Lohmann?=) Hi List, I try to build up an apache module in C which interacts with an Apache Modul and stumbled over a curious thing. I have several virtual hosts and wish to read a configuration of ONE of them. unfortunatly the call: serv = SG(server_context)->r->server for( ; serv ; serv->next) { serv->hostname } will result in different data. Example httpd.conf: ... ... ... mymod_enable=true ... If I call the PHP script at 127.0.0.3 I got: 127.0.0.3 127.0.0.2 = ON 127.0.0.1 But if I call the PHP script at 127.0.0.1 I got: 127.0.0.1 Am I stupid? Didn't should give me serv = SG(server_context)->r->server always the first one ??? How to get the first if I'm the last other with "serv->next" cause there ist NO "serv->prev" :-( regards Goetz