Mailinglist Archive: opensuse (4498 mails)

< Previous Next >
Re: [SLE] which file is the config file of http server?
  • From: Joachim Schrod <jschrod@xxxxxxx>
  • Date: Wed, 1 Nov 2006 08:59:41 +0000 (UTC)
  • Message-id: <454861F5.1040703@xxxxxxx>
Leendert Meyer wrote:
On Wednesday 01 November 2006 02:57, Joachim Schrod wrote:
pearly zhao wrote:
> It seems the config file of http server is
> /etc/apache2/httpd.conf. for example, I changed the
> status(disable/enable) of some http server module
> at yast. the file /etc/apache2/sysconfig.d/loadmodule.conf is
> modifed, add or delete a line beginning with LoadModule. and
> /etc/apache2/sysconfig.d/loadmodule.conf is include at
> /etc/apache2/httpd.conf.
> But /etc/httpd/httpd.conf isn't be modified.
>
> So what is /etc/httpd/httpd.conf for?

It was the config file of Apache 1. It is not used any more in
current SUSE installations.

Joachim:
Interesting. When I open /etc/httpd.conf, and put some random characters (like ads;lk/D) on the first line, save it and restart wich "rcapache2 restart", I get a syntax error on line 1. (OSL 10.1, apache2-2.2.0-21.7). So apparently it is critical.

Which http.conf did you open? In 10.0, there is no /etc/httpd.conf.
There, the default is /etc/apache2/httpd.conf and can be changed in /etc/sysconfig/apache2. Is this a symlink that got introduced in 10.1?

If your Apache2 really uses /etc/httpd/httpd.conf (please note the different directory, this is not in /etc/apache2!) then this is really strange. What does /etc/sysconfig/apache2 tell in the comments for APACHE_HTTPD_CONF; or what is the value of this variable?

What does rpm -qf /etc/httpd/httpd.conf output? (Again, please note the directory, this is not in apache2.)

pearly zhao:
leen@ws-03:/etc/apache2> grep '/sysconfig.d' *
httpd.conf:Include /etc/apache2/sysconfig.d/loadmodule.conf
httpd.conf:Include /etc/apache2/sysconfig.d/global.conf
httpd.conf:Include /etc/apache2/sysconfig.d/include.conf

I think this answers your question. ;)

Why? Sorry, but I cannot see how your grep answers that question. It shows that the sysconfig.d files are included in /etc/apache2/httpd.conf -- but that was already mentioned by the OP, see above. So he knew that already.

He (or she?) detected hat there is a *second* httpd.conf in his system, in the *neighbouring* directory httpd, and asked which httpd.conf was now really used.

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany

< Previous Next >
Follow Ups