From nobody@hyperreal.com Tue Oct 8 20:47:18 1996 Received: by taz.hyperreal.com (8.7.6/V2.0) id UAA09071; Tue, 8 Oct 1996 20:47:18 -0700 (PDT) Message-Id: <199610090347.UAA09071@taz.hyperreal.com> Date: Tue, 8 Oct 1996 20:47:18 -0700 (PDT) From: Rasmus Lerdorf Reply-To: rasmus@bellglobal.com To: apbugs@hyperreal.com Subject: mod_info output is not displaying current configuration. X-Send-Pr-Version: 3.2 >Number: 17 >Category: mod_info >Synopsis: mod_info output is not displaying current configuration. >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Oct 8 20:47:26 1996 >Last-Modified: Thu Jan 23 14:36:24 PST 1997 >Originator: rasmus@bellglobal.com >Organization: >Release: 1.2-dev >Environment: all >Description: The mod_info output from the Apache site is a bit odd. None of the current configuration output is showing up. If you have a look at the Apache site version and compare it to www.vex.net/info you will see what I mean. >How-To-Repeat: >Fix: I had a look at the mod_info code. I load up the configuration with the following bit of code: sprintf(buf,"%s/%s",server_root,server_confname); mod_info_cfg_httpd = mod_info_load_config(r->pool,buf); sprintf(buf,"%s/%s",server_root,serv->srm_confname); mod_info_cfg_srm = mod_info_load_config(r->pool,buf); sprintf(buf,"%s/%s",server_root,serv->access_confname); mod_info_cfg_access = mod_info_load_config(r->pool,buf); server_root and server_confname are both externs from http_main.c and then I pick out the other configuration file names out of the server_rec structure. I haven't had a chance to have a good look at the 1.2-dev code, but has something changed here? If for example at apache.org everything is configured in a single httpd.conf file, and the server_root or server_confname globals are no longer set correctly, then we would see the effect we are seeing. %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fielding State-Changed-When: Thu Jan 23 14:36:23 PST 1997 State-Changed-Why: Fixed in 1.2b5-dev by Ken the Rodent of Unusual Size. mod_info.c was making the assumption that the config files are relative to ServerRoot. Looking at the /serv-info, it's clear that www.apache.org's server is started with -f and an absolute pathname. >Unformatted: