You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/02/18 00:44:10 UTC

[BUG]: "cmd line -f doesn't work for relative paths" on Solaris 2.x (fwd)

not acked, not verified.

---------- Forwarded message ----------
Date: Mon Feb 17 13:58:27 1997
From: jerry@placeware.com
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "cmd line -f <config> doesn't work for relative paths" on Solaris 2.x

Submitter: jerry@placeware.com
Operating system: Solaris 2.x, version: 2.5.1
Version of Apache Used: 1.2b6
Extra Modules used: 
URL exhibiting problem: 

Symptoms:
--
The doc says you can start Apache with the
"-f config" arg, where "If config does not begin
with a /, then it is taken to be a path relative
to the ServerRoot. The default is
conf/httpd.conf." But given a relative path or
defaulting this arg, it looks in a hard-wired
directory, not in the ServerRoot.

Giving an absolute pathname to the -f arg works.
--

Backtrace:
--

--



Re: [BUG]: "cmd line -f doesn't work for relative paths" on Solaris 2.x (fwd)

Posted by Marc Slemko <ma...@znep.com>.
If you try:
   httpd -c ./bar/foo

you should get something like:

   httpd: could not open document config file /usr/local/etc/httpd/./bar/foo

That is as it should be.  It does not use the ServerRoot in the config
file to find the config file (how could it?  If it hasn't found the 
config file it can't look it in to know where to look...) but rather
the HTTPD_ROOT defined in httpd.h.  Is this not what you are seeing?

I guess the docs could use clarification.  Is this the man page you
got that from?

> ---------- Forwarded message ----------
> Date: Mon Feb 17 13:58:27 1997
> From: jerry@placeware.com
> To: apache-bugs%apache.org@organic.com
> Subject: [BUG]: "cmd line -f <config> doesn't work for relative paths" on Solaris 2.x
> 
> Submitter: jerry@placeware.com
> Operating system: Solaris 2.x, version: 2.5.1
> Version of Apache Used: 1.2b6
> Extra Modules used: 
> URL exhibiting problem: 
> 
> Symptoms:
> --
> The doc says you can start Apache with the
> "-f config" arg, where "If config does not begin
> with a /, then it is taken to be a path relative
> to the ServerRoot. The default is
> conf/httpd.conf." But given a relative path or
> defaulting this arg, it looks in a hard-wired
> directory, not in the ServerRoot.
> 
> Giving an absolute pathname to the -f arg works.
> --
> 
> Backtrace:
> --
> 
> --
> 
>