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 5EEBE965C for ; Thu, 23 May 2013 15:45:37 +0000 (UTC) Received: (qmail 63216 invoked by uid 500); 23 May 2013 15:45:36 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 63095 invoked by uid 500); 23 May 2013 15:45:32 -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 61516 invoked by uid 99); 23 May 2013 15:45:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 15:45:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seanmckaybeck@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ea0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 15:45:13 +0000 Received: by mail-ea0-f172.google.com with SMTP id d10so1966916eaj.3 for ; Thu, 23 May 2013 08:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KRSAqRlNcACP2WweX0U4Dr6AKkKurPVYVOfrfXcqvGs=; b=Ld9B3tSoyKAxh/qYtiZpitaJDxQnSzArwh0fmTO41yI2Vk0HSmLbW28LghjPKw2EEG 2knN8oxCm7h0zMUHQb1rBn3Q8HNE6wmh+saIfYxwRWlYy8RECiAFenlThZQAZHJVoJie 0eBrkKVdMC1YA/yyXJekf+yfw/ViKqowmd7Ucb7VDGE+93Ye8XQM1Dzl/Zt2PN+Z6C+R HoyoXxwUvaxbuHnLq1FO/K9SQzA0WcCaZt3iEOgQLfhOPgTVDERcLwf3/OuR8KFgOsRU GFmj+TuMFdJtpSI0seYJcmx7Ike4wVOVRImaXCLp3omWlggKMbkyPNtIM4mbiipy/QgK uaAg== MIME-Version: 1.0 X-Received: by 10.15.22.135 with SMTP id f7mr32125630eeu.29.1369323892581; Thu, 23 May 2013 08:44:52 -0700 (PDT) Received: by 10.14.202.70 with HTTP; Thu, 23 May 2013 08:44:52 -0700 (PDT) In-Reply-To: References: <519BD9D1.3010907@gmail.com> <519C7674.6080703@gmail.com> Date: Thu, 23 May 2013 09:44:52 -0600 Message-ID: Subject: Re: Get name of config file for module From: Sean Beck To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=089e01681354334fb704dd6490a7 X-Virus-Checked: Checked by ClamAV on apache.org --089e01681354334fb704dd6490a7 Content-Type: text/plain; charset=ISO-8859-1 s is the server_rec? So what you're saying is s->defn_name refers to the .conf the module got its configuration information from? It's labeled in the httpd.h header as "The name of the server" but does that actually mean the config file? On Thu, May 23, 2013 at 8:59 AM, Eric Covener wrote: > On Thu, May 23, 2013 at 10:39 AM, Sean Beck > wrote: > > OK thank you! I ask because my boss wants me to log the config file info > on > > start-up of the server but I have been completely unable to find a way to > > do so, hence why I came to the mailing lists for help. Thanks for the > help > > You can get info about where any of your own directives are specified. > The VirtualHost directive remembers where it was found: > > s->defn_name = cmd->directive->filename; > s->defn_line_number = cmd->directive->line_num; > --089e01681354334fb704dd6490a7--