Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 31247 invoked from network); 31 Mar 2008 11:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 11:57:10 -0000 Received: (qmail 85283 invoked by uid 500); 31 Mar 2008 11:57:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 85273 invoked by uid 500); 31 Mar 2008 11:57:00 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 85262 invoked by uid 99); 31 Mar 2008 11:57:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 04:57:00 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.198.156.132] (HELO dimensional.papaya-server.com) (88.198.156.132) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 11:56:17 +0000 Received: from mailer.papaya.local (unknown [89.246.128.28]) by dimensional.papaya-server.com (Postfix) with ESMTP id E17C71F0D4B for ; Mon, 31 Mar 2008 13:56:27 +0200 (CEST) Received: from localhost (mailer.papaya.local [192.168.50.42]) by mailer.papaya.local (Postfix) with ESMTP id BC5E01939E407 for ; Mon, 31 Mar 2008 11:56:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mailer.papaya.local Received: from mailer.papaya.local ([192.168.50.42]) by localhost (mailer.papaya.local [192.168.50.42]) (amavisd-new, port 10024) with ESMTP id HbfHTFeDdqxp for ; Mon, 31 Mar 2008 11:56:22 +0000 (UTC) Received: from [192.168.50.135] (tom.papaya.local [192.168.50.135]) by mailer.papaya.local (Postfix) with ESMTP for ; Mon, 31 Mar 2008 11:56:22 +0000 (UTC) Message-ID: <47F0D168.5080109@lingoworld.de> Date: Mon, 31 Mar 2008 13:56:24 +0200 From: Sascha Kersken User-Agent: Thunderbird 1.5.0.14pre (X11/20071023) MIME-Version: 1.0 To: users@httpd.apache.org References: <382280FF600DE84C8068473060AEF93602AE36BE@tri02mail.trianz.int> <47F0A3A2.5050903@lingoworld.de> <382280FF600DE84C8068473060AEF93602AE3751@tri02mail.trianz.int> <47F0B3B3.7000302@lingoworld.de> <382280FF600DE84C8068473060AEF93602AE38A3@tri02mail.trianz.int> In-Reply-To: <382280FF600DE84C8068473060AEF93602AE38A3@tri02mail.trianz.int> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] LoadModule directive Hey, > Hi, > Thanks !! never mind :). > I wrote myapp.so. Are you asking to change the implementation of > myapp.so in such a way so that it reads some instruction in virtual host > directive and take action upon. i.e > > I have following module in global part of httpd.conf > > LoadModule my_module "C:\Program Files\Apple/bin/MyApp.so" > > And I have fowwing two virtual host block (name based configuration) > > > DocumentRoot "C:/vhost1" > ServerName apple1.sun.com > > # > # VirtualHost example: > # Almost any Apache directive may go into a VirtualHost container. > # The first VirtualHost section is used for requests without a known > # server name. > # > > > DocumentRoot "C:/vhost" > ServerName apple2.sun.com > my_module on > > With above configuration I want every request > http://apple2.sun.com/anything,html to be redirected to back-end while > http://apple1.sun.com/anything.html should be given access directly. > > Do I need to read "my_module on" and act upon ? I am not sure how to use > "MyModulesFunction on"-style direcive you pointed in last email ? Please > explain? It would be great if you have any example :-) Yes, all your conclusions are right. Feel free to read the following (English) tutorial I wrote for my (German) Apache textbook: http://buecher.lingoworld.de/apache2/mod_daytime_en.html In this tutorial, I explain how to write a module for the TCP daytime service; it reads a Virtual-Host-based configuration directive with on and off (or simply absent) values. Regards Sascha --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org