You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Anthony N. Frasso" <af...@yahoo.com> on 2004/03/08 02:22:34 UTC

[users@httpd] How does httpd determine the default location of the configuration file?

I am running OpenBSD 3.3 on my machine, and have been running Apache 2
(under a simple configuration) for about a week now.  During the
installation process, the apache binaries were placed in
/usr/local/apache2, and the configuration file as well as the htdocs
directory were placed in /var/www.  I am wondering how httpd is able to
determine where httpd.conf is located?  Is it simply based on the
operating system I am running (i.e. "The user is running OpenBSD, so
httpd.conf *must* be located in /var/www...")?  Or is there some
parameter that is set (maybe in the source code or the installation
scripts) to give a default location for the file?  I already know that
I can use the -f to change the configuration file used, but this is
more a matter of curiosity than actual problem solving.  Thank you for
your help.

Anthony Frasso

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Re: [users@httpd] How does httpd determine the default location of the configuration file?

Posted by Hendrik-Jan van der Waal <h...@vdwaal.net>.
Hi

Running debian (woody). Most likely the environment is set in the script
that is used to start the daemon. Look at /etc/init.d/apache

GL
Hendrik-Jan
> I am running OpenBSD 3.3 on my machine, and have been running Apache 2
> (under a simple configuration) for about a week now.  During the
> installation process, the apache binaries were placed in
> /usr/local/apache2, and the configuration file as well as the htdocs
> directory were placed in /var/www.  I am wondering how httpd is able to
> determine where httpd.conf is located?  Is it simply based on the
> operating system I am running (i.e. "The user is running OpenBSD, so
> httpd.conf *must* be located in /var/www...")?  Or is there some
> parameter that is set (maybe in the source code or the installation
> scripts) to give a default location for the file?  I already know that
> I can use the -f to change the configuration file used, but this is
> more a matter of curiosity than actual problem solving.  Thank you for
> your help.
>
> Anthony Frasso
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you?re looking for faster
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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