You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aimal Khattak <kh...@usa.com> on 2002/07/15 09:06:26 UTC
RE: httpd.conf Mystery continues
Thanks Mark..
I tried the httpd -V and it shows HTTPD_ROOT=/usr/aimal/Apache
and SERVER_CONFIG_FILE=conf/httpd.conf
These are the exact places where I have been checking for the config files..
What really is strange is that on changing DocumentRoot location to /usr/aimal/Apache/htdocs nothing changes and the server still picks htdocs from /usr/local/httpd/htdocs directory.. i.e. changes in httpd.conf has no effect on anything ???
I also checked the $HTTPD variable in the apachectl shell file and found it pointing to the right bin location ..
I have to use mod_rewrite but before I can go that far .. I have to first clear this mystery!!!
Thanks a lot in advance..
Aimal
----- Original Message -----
From: Mark Mentovai <ma...@mentovai.com>
Date: Fri, 12 Jul 2002 09:34:07 -0400
To: users@httpd.apache.org
Subject: RE: Apache httpd/modules
> Aimal Khattak wrote:
> > I have one more question regarding the setup of httpd.conf file.. I
> > have installed Apache in /usr/aimal/Apache. In the Apache directory,
> > in the conf directory file httpd.conf, even if I modify the
> > DocumentRoot path, it doesnt change anything and the .html files
> > continue to be served from the path /usr/local/httpd/htdocs for some
> > reason completely unknown to me ..
> >
> > is the real httpd.conf file the one in /usr/aimal/Apache/conf ?? or
> > somewhere else.. is there a way to find out from where the server is
> > actually reading the httpd.conf file ??
>
> When Apache is built, a number of path configuration items are assigned
> default values. Most of these can be overridden in the configuration
> file, but for obvious reasons, the location of the configuration file
> can not. Run "httpd -V" to determine where your httpd executable will
> look for its configuration. SERVER_CONFIG_FILE, if not absolute, is
> relative to HTTPD_ROOT.
>
> To specify an alternate configuration file, invoke httpd with "-f
> <config>" or "-d <serverroot>" to override the compiled-in defaults.
> If you use apachectl, you can modify it to include these arguments.
> You can also rebuild Apache, adjusting these settings before running
> "make." "configure" makes it easy to do this.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: httpd.conf Mystery continues
Posted by Mark Mentovai <ma...@mentovai.com>.
Aimal Khattak wrote:
> I tried the httpd -V and it shows HTTPD_ROOT=/usr/aimal/Apache
> and SERVER_CONFIG_FILE=conf/httpd.conf
>
> These are the exact places where I have been checking for the config files..
Is that the same httpd that runs when you start it? "ps" will show you the
path to the httpd executable in use.
> What really is strange is that on changing DocumentRoot location to
> /usr/aimal/Apache/htdocs nothing changes and the server still picks htdocs
> from /usr/local/httpd/htdocs directory.. i.e. changes in httpd.conf has no
> effect on anything ???
I assume that you're restarting the server after making such changes. Apache
needs to be told to reread its configuration files.
> I also checked the $HTTPD variable in the apachectl shell file and found it
> pointing to the right bin location ..
That may not be the apachectl that is used when you type "apachectl start".
"which apachectl" will show you the path to the script that your shell will
execute. You can try invoking apachectl with an absolute path, as in
"/usr/aimal/Apache/bin/apachectl start".
> I have to use mod_rewrite but before I can go that far .. I have to first
> clear this mystery!!!
It sounds like there's another installation of Apache elsewhere on the machine
(/usr/local/httpd) that's being used instead of your copy in /usr/aimal/Apache.
Less likely would be a virtual host, alias, or some other element in the
configuration in /usr/aimal/Apache that satisfies requests from
/usr/local/httpd.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org