Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6805D7A3 for ; Tue, 21 May 2013 20:32:52 +0000 (UTC) Received: (qmail 17207 invoked by uid 500); 21 May 2013 20:32:53 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 17179 invoked by uid 500); 21 May 2013 20:32:53 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 17171 invoked by uid 99); 21 May 2013 20:32:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 20:32:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sorinm@gmail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-wg0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 20:32:47 +0000 Received: by mail-wg0-f52.google.com with SMTP id z11so594672wgg.31 for ; Tue, 21 May 2013 13:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=7mn7EGJf10lZskAivH4GmOmrnHE52ex2gM/UhnIOcB4=; b=p3MIW4Cv9IzHXTwPDdqEzG5FJ2G4R59Ik4zEuFqnRvHX74Vk1y1JhoN17oWhhJf0iq QCinU2Xm8FFU5Y5VOmPPrQttvKez1/Ds0GH3mm4Lf7gRt6dSRijvcPnsgKKY9zIkFa9F ZEzJibWWY6aU20vo+tzf3hynKra68w+sH5D+u6pWrFfp7nHxD1pVX29dMwvNe1N63VLS IUyANhRjQqaO7IRlSeKkiXsEgcjD0+XLXQUqfnMYSlSgRtYT1xSt7HxVV4QiZJqVyyb4 4fUd7igHiYzaXhE1uxSb4/esi5zC1J3r2bJ0TvZ5FZPkA+2wCXpaTc5yEF96TxvXWRxV CHUQ== X-Received: by 10.180.187.234 with SMTP id fv10mr8435942wic.29.1369168346606; Tue, 21 May 2013 13:32:26 -0700 (PDT) Received: from ?IPv6:2a01:e35:8b73:8dd0:762f:68ff:fee5:8d8? ([2a01:e35:8b73:8dd0:762f:68ff:fee5:8d8]) by mx.google.com with ESMTPSA id fu14sm4630609wic.0.2013.05.21.13.32.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 13:32:25 -0700 (PDT) Message-ID: <519BD9D1.3010907@gmail.com> Date: Tue, 21 May 2013 22:32:17 +0200 From: Sorin Manolache User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130112 Icedove/17.0.2 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: Get name of config file for module References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 2013-05-21 21:36, Sean Beck wrote: > Hi all, > > I have written a module and now would like to log the name of the actual > config file being used by the module (there will be multiple modules on the > server with their own config files. I looked through > https://httpd.apache.org/docs/2.4/developer/modguide.html but am still > struggling to understand how Apache knows what the config file is for each > module and how I can check what the name of the actual name of the file is > for each module. There is no such thing as a module-specific configuration file. In principle a single file could contain the configuration for all modules. The configuration files are split per-module for convenience only, in order to be able to activate modules independently. The configuration _directives_ are defined per-module (but actually nothing stops you from defining the same configuration directive in several modules). Apache defines a directive called "Include". This directive allows for the splitting of the entire configuration into several files. But from apache's point of view there is no correspondence between the files into which the configuration is split and the modules that define the directives found in those files. Sorin